Advantages and Disadvanteags of Cpu Scheduling Algortithms
Advantages and Disadvanteags of Cpu Scheduling Algortithms
or threads are executed on the CPU. Each scheduling algorithm has its own advantages and
disadvantages, which can impact system performance and user experience. Here are some common
CPU scheduling algorithms and their pros and cons:
Advantages:
Fair for all processes as they are executed in the order they arrive.
Disadvantages:
Poor utilization of CPU time, especially when long processes are ahead in the
queue (the "convoy effect").
Advantages:
Efficient for batch processing when process execution times are known in
advance.
Disadvantages:
3. Priority Scheduling:
Advantages:
Disadvantages:
Advantages:
Disadvantages:
Inefficient for long processes as they may need to wait a long time for their
turn.
Advantages:
Each queue can have its scheduling algorithm tailored to its specific
requirements.
Disadvantages:
Advantages:
Disadvantages:
Advantages:
Disadvantages:
Advantages of SRTF:
1. Minimizes the average waiting time, making it efficient in terms of turnaround time.
2. Ensures that shorter processes are executed with minimal delay, leading to better system
responsiveness.
Disadvantages of SRTF:
1. High context-switching overhead: Frequent preemptions can lead to increased overhead due
to context switching.
3. Potential for starvation: Long processes may suffer from starvation if shorter processes
continuously arrive.
4. May not be suitable for real-time systems: SRTF requires precise knowledge of process
execution times, which is often not available in real-time environments.