What is the difference between non-preemptive and preemptive scheduling? Which technique would be suitable for a system which is used mainly for gaming application? Justify your answer.
Preemptive scheduling | non preemptive scheduling |
---|---|
Cpu is allocated to a process for a limited time |
Cpu allocated to a process till it termimates or goes to waiting state |
Process can be interrupted inbetin-be |
Process cannot be interrupted till it terminates or switches to waiting state |
Has switching overhead(context switching) | No switching overhead |
Used in time sharing systems | Not used in time sharing systems |
Cpu utilization is higher than non preemptive scheduling |
Cpu utilization is very low |
It is flexibe | it is not flexible |
Round robin and SRTF are preemptive scheduling | FCFS is example of non preemptive scheduling |
Non preemptive scheduling is best for the system which is mainly used for gaming application .
We can also use preemptive scheduling if we dont care more about the game and if it is ok for the game to halt ,if a more important os process is waiting.If we use preemptive ,game may close abruptly.
Get Answers For Free
Most questions answered within 1 hours.