1 Star 0 Fork 4.9K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sched-h.md 7.02 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 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/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助