What Is A Process Scheduler? State The Characteristics of A Good Process Scheduler? Which Criteria Affect The Schedulers Performance?
What Is A Process Scheduler? State The Characteristics of A Good Process Scheduler? Which Criteria Affect The Schedulers Performance?
Scheduling can be defined as a set of policies and mechanisms which controls the
order in which the work to be done is completed. The scheduling program which is
a system software concerned with scheduling is called the scheduler and the
algorithm it uses is called the scheduling algorithm.
in a unit of time. The scheduling algorithm must look to maximize the number
3. Response time − Response time is the time taken to start responding to the
request. A scheduler must aim to minimize response time for interactive users.
4. Turnaround time − Turnaround time refers to the time between the moment of
submission of a job/ process and the time of its completion. Thus how long it
5. Waiting time − It is the time a job waits for resource allocation when several
waiting time.
6. Fairness − A good scheduler should make sure that each process gets its fair
1 0 7
2 1 4
3 3 9
4 4 5
Job1 is started at time 0, being only job in queue. Job 2 arrives at time 1. The
remaining time for job 1 is larger (6 time units) than the time required by job2 (4
time units), so job 1 is preempted and job2 is scheduled. The average turnaround
time for the above is:
2 5-1 = 4
3 25-3 = 22
4 10-4 = 6
48
Advantage
Average turnaround time is less.
Disadvantage
Sometime a running process which is being almost completed is preempted
because a new job with very small runtime arrives. It is not really worth doing.
● In Shortest Job First scheduling, priority is given to shortest job, which may
● For determining priority, not only the job's service time but the waiting time is
also considered.
● So shorter jobs get preference over longer processes because service time
● Longer jobs that have been waiting for long period are also give favorable
18. What are the different principles which must be considered while selection of
a scheduling algorithm? Find out which algorithm among FCFS, SJF and Round Robin
with quantum 10, would give the minimum average time for a given workload.
1. Fairness − All processes should be treated the same. No process should suffer
indefinite postponement.
3. Predictability − A given job should run in about the same predictable amount of
time and at about the same cost irrespective of the load on the system.
1. Response time
2. Turnaround time
3. Waiting time
All modern computers can do many things at the same time. For Example
computer can be reading from a disk and printing on a printer while running a user
program. In a multiprogramming system, the CPU switches from program to
program, running each program for a fraction of second.
Although the CPU is running only one program at any instant of time. As CPU
speed is very high so it can work on several programs in a second. It gives user an
illusion of parallelism i.e. several processes are being processed at the same time.
This rapid switching back and forth of the CPU between programs gives the illusion
of parallelism and is termed as pseudo parallelism. As it is extremely difficult to
keep track of multiple, parallel activities, to make parallelism easier to deal with,
the operating system designers have evolved a process model.
Only one program is active at any moment. The rate at which processes perform
computation might not be uniform. However usually processes are not affected by
the relative speeds of different processes.