CPU - Scheduling Research Methodology
CPU - Scheduling Research Methodology
CPU Scheduling plays a vital role by switching the CPU among various processes.
What is a Processor ?
A processor (CPU) is the logic circuitry that
responds to and processes the basic
instructions that drive a computer.
Need of Scheduling ?
To allow as many process running at all the
time in order to make best use of CPU.
T
What are Schedulers ?
5
�� Schedulers are special system software which
handle process scheduling in various ways.
��
Types of Schedulers ?
The high efficient CPU scheduler depends on design of high quality scheduling
algorithms which suits the scheduling goals.
Popular Algorithms :
Disadvantages :
Turnaround time, waiting time and response time is high. Eg: Convoy Effect
One Process with longest burst time can monopolize CPU. Hence, throughput is low.
Advantages :
Disadvantages :
The real difficulty with the SJF algorithm is, to know the length of the next CPU request.
Shortest Job First
Advantages :
The relative importance of each process may be precisely defined.
Disadvantages :
If high priority processes use up a lot of CPU time, lower priority processes may starve.
Advantages :
Every process gets an equal share of the CPU, so no starvation.
Disadvantages :
��
Multilevel feedback queue algorithm :
A multi-level feedback queue scheduling algorithm partitions the ready queue
into several separate queues. The process is allowed to move between queues.
It equally divides the CPU time among all the processes and priorities
each process according to there virtual runnable time.
T PROPOSED ALGORITHM
1
��
��
Calculate Time Quantum as follows:
n
∑
Where,
Quantum = Pi / n Pi = burst time of Pi,
i=1 n = number of process.
Drawbacks :
FUTURE SCOPE
The proposed algorithm is innovative move
and can even be implemented easily.
Improve Burst Time prediction.
It is observed that the turnaround time,
waiting time and response time of processes
Implementation and testing in
are optimum for proposed algorithm.
Open source such as LINUX.