Module sched

Module sched 

Source
Expand description

Scheduler / realtime policy helpers. Linux scheduler / realtime policy helpers.

These helpers are intentionally small and explicit. They operate on the current thread.

References:

  • pthread_setschedparam(3) / sched_setscheduler(2)
  • Real-time policies: SCHED_FIFO, SCHED_RR

Functionsยง

set_current_thread_sched_fifo
Set the current thread to SCHED_FIFO with the given priority.
set_current_thread_sched_other
Set the current thread to the normal time-sharing policy (SCHED_OTHER).
set_current_thread_sched_rr
Set the current thread to SCHED_RR with the given priority.