This is a multipart blog article series, and in this series I am going to explain you the concepts of operating system. This article series is divided into multiple modules and this is the second module which consists of 11 articles.
In this article we will about process scheduling algorithms. Broadly scheduling algorithms are divided into two parts Pre-emptive and Non pre-emptive, and both contain several different algorithms.
- It is a way of selecting a process from
readyqueue and putting it on CPU.
- According to the degree of multiprogramming, we try to keep multiple processes on the ready queue.
- In pre-emptive process the process can be sent back to
runningstate. Due to many conditions like time quantum or priority.
- This is used to achieve multiprocessing environment.
- In non pre-emptive the process that has been sent to
readystate will not come back to
readystate, after reaching
runningstate, it will be executed completely and get terminated.
- This approach is generally used in Batch operating system.
Both pre-emptive and non pre-emptive processes have different type algorithms.
- SRTF (Shortest remaining time first)
- LRTF (Longest remaining time first)
- Round Robin.
- Priority based.
- FCFS (First come first serve)
- SJF (Shortest job first)
- LJF (Longest job first)
- HRRN (Highest response ratio next)
- Multilevel queue/ multilevel feedback queue.
So, this was a brief about “process scheduling algorithm”. Hope you liked it and learned something new from it.
If you have any doubt, question, queries related to this topic or just want to share something with me, then please feel free to contact me.