On Linux SCHED_FIFO and SCHED_RR

后端 未结 4 1240
陌清茗
陌清茗 2020-12-29 12:03

I\'m writing a a very small daemon that must remain responsive even when a system is under severe stress. I\'m looking at the differences between SCHED_FIFO and SCHED_RR in

4条回答
  •  旧时难觅i
    2020-12-29 12:39

    SCHED_FIFO can't be preempted (context switched to another process) unless another process of higher priority shows up in the execution queue.

    SCHED_RR can be preempted by a time quantum (delay given to a process to execute).

    They are both "real-time" priorities of linux based schedulers.

提交回复
热议问题