Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FCFS algorithm for linux kernel process scheduler

In linux kenel process scheduler there is a priority type SCHED_FIFO. I want to change the scheduling policy. I have two questions:

1- Where, in the kernel source code, is it mentioned that after a tick the cpu should belong to the interrupted process(Because in FIFO the process should remain until it finishes)?

2- In SCHED_RR where the interrupted process is inserted at the end of the waiting queue again?

I use 2.6.31 kernel

Thank you.

like image 538
Shayan Avatar asked Jul 13 '26 02:07

Shayan


1 Answers

Read the function do_sched_rt_period_timer in kernel/sched_rt.c about line 530.

like image 71
Andrew McGregor Avatar answered Jul 15 '26 16:07

Andrew McGregor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!