We know that there are several scheduling policies in linux like SCHED_FIFO
, SCHED_RR
, SCHED_OTHER
, etc. and one can change the scheduler of a real-time process using the sched_setscheduler
system call.
But I'm not able to change the scheduler of a program to Earliest-deadline-first
using the SCHED_DEADLINE
macro ? Can anyone suggest a way how to achieve this ?
First of all, you need a 3.14+ Linux kernel.
Moreover, since glibc does not yet provide the API wrapping the new scheduler syscall (i.e. ) you need to wrap them by yourself: