Available on crate feature
sched
only.Expand description
Execution scheduling
See Also sched.h
Structs§
- CpuSet represent a bit-mask of CPUs. CpuSets are used by sched_setaffinity and sched_getaffinity for example.
Functions§
sched_getaffinity
get a thread’s CPU affinity mask (sched_getaffinity(2)
)- Determines the CPU on which the calling thread is running.
sched_setaffinity
set a thread’s CPU affinity mask (sched_setaffinity(2)
)- Explicitly yield the processor to other threads.