1 Star 0 Fork 5.1K

宋炜 / docs

forked from OpenHarmony / docs 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
sched-h.md 7.02 KB
Copy Edit Raw Blame History
wenjun authored 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

sched.h

Overview

Related Modules:

PROCESS

Description:

Provides process- and thread-related structures and functions (for example, obtaining scheduling policies and parameters).

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

sched_param

Defines process scheduling parameters.

Functions

Function Name

Description

sched_get_priority_max (int policy)

int 

Obtains the maximum static priority that can be used for a process.

sched_get_priority_min (int policy)

int 

Obtains the minimum static priority that can be used for a process.

sched_getparam (pid_t pid, struct sched_param *param)

int 

Obtains scheduling parameters of a process.

sched_getscheduler (pid_t pid)

int 

Obtains the scheduling policy of a process.

sched_rr_get_interval (pid_t pid, struct timespec *interval)

int 

Obtains the execution time limit of a process.

sched_setparam (pid_t pid, const struct sched_param *param)

int 

Sets scheduling parameters related to a scheduling policy for a process.

sched_setscheduler (pid_t pid, int policy, const struct sched_param *param)

int 

Sets a scheduling policy for a process.

sched_yield (void)

int 

Yields the running process.

1
https://gitee.com/galaxy1978/docs.git
git@gitee.com:galaxy1978/docs.git
galaxy1978
docs
docs
master

Search