On Linux SCHED_FIFO and SCHED_RR

后端 未结 4 1242
陌清茗
陌清茗 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:50

    If all your other tasks use the standard scheduler, it makes no difference; SCHED_FIFO and SCHED_RR only affect the scheduling of these tasks with each other.

    So on a normal system it makes no difference. FIFO is easiest to understand, so use that I guess.

    If you have several tasks of different priorities, only the higher one will be run if they are all ready to be run (and there is only one CPU core)

提交回复
热议问题