Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What scheduling algorithms does Linux kernel use?

Tags:

What scheduling algorithms does Linux kernel use?

Where can I get more info about linux's kernel? (OS first course... student level)

like image 505
Nick Avatar asked Oct 21 '09 20:10

Nick


People also ask

What is Linux scheduling algorithm?

The Linux scheduling algorithm works by dividing the CPU time into epochs . In a single epoch, every process has a specified time quantum whose duration is computed when the epoch begins. In general, different processes have different time quantum durations.

What scheduling policy does Linux use?

Linux supports 3 scheduling policies: SCHED_FIFO, SCHED_RR, and SCHED_OTHER.

What are the two different types of scheduling algorithms in Linux?

Six types of process scheduling algorithms are: First Come First Serve (FCFS), 2) Shortest-Job-First (SJF) Scheduling, 3) Shortest Remaining Time, 4) Priority Scheduling, 5) Round Robin Scheduling, 6) Multilevel Queue Scheduling.

Does Linux use preemptive scheduling?

Linux, like all Unix variants and most modern operating systems, provides preemptive multitasking. In preemptive multitasking, the scheduler decides when a process is to cease running and a new process is to resume running.


1 Answers

The linux kernel has several different available scheduling algorithms both for the process scheduling and for I/O scheduling. Download it from www.kernel.org and call

make menuconfig

You will get a full list of all available options with a built-in help. One guy that once came up with his O(1) scheduler is Con Kolivas. Definitively have to have a look at what he did. I was once a great break-through.

like image 76
jdehaan Avatar answered Oct 12 '22 18:10

jdehaan