Expand description
Bindings to sched.h
and sys/resource.h
Just enough to set the scheduler priority.
Structs§
- CpuSet
- Struct representing a bitmask to be used with the affinity functions.
Meant to represent the
CPU_*
macros fromsched.h
Enums§
Functions§
- get_
affinity - Get the cpu affinity for a thread.
- get_
policy - Get the scheduling policy for a process
- get_
priority - Get the scheduling priority for the selected identifier (
pid
,gid
, oruid
) - get_
self_ affinity - Get the cpu affinity for the current thread. See
get_affinity
. - get_
self_ policy - Get the scheduling policy for this process
- get_
self_ priority - Get the scheduling priority for the
Which
of the calling process - set_
affinity - Set the cpu affinity for a thread.
- set_
policy - Set the scheduling policy for a process
- set_
priority - Set the scheduling priority for the selected identifier (
pid
,gid
, oruid
) - set_
self_ affinity - Set the cpu affinity for the current thread See
set_affinity
. - set_
self_ policy - Set the scheduling policy for this process
- set_
self_ priority - Set the scheduling priority for the
Which
of the calling process