Professional Documents
Culture Documents
● Basic Concepts
● Scheduling Criteria
● Scheduling Algorithms
Operati ng System Concepts – 9 th Editi on 6.2 Silberschatz, Galvin and Gagne ©2013
Basic
Concepts
• CPU scheduling is the basis of multiprogrammed operating system.By
switching CPU among processes ,OS can make computer more active
• In Multiprogramming ,several processes are kept in memory at a time.
when one process has to wait for some I/O or interrupt,Operating system
takes CPU away from that process and gives the CPU to another process.
• This is called CPU scheduling and this cycle continues
• Success of CPU scheduling depends on an observed property of processses
• Two types of Processes are there
1.CPU bound processes
2.I/O bound processes
• There should be a mix of above processes for efficient multiprogramming
Basic Concepts
Operati ng System Concepts – 9 th Editi on 6.4 Silberschatz, Galvin and Gagne ©2013
CPU Scheduler
● Short-term scheduler or CPU scheduler selects a process
from the processes in ready queue, and allocates the C P U
to one of them
● Ready Queue may be ordered in various ways
● C P U scheduling decisions may take place when a process:
• Switches from running to waiting state
• Switches from waiting to ready state
• Switches from running to ready state
• Terminates
Operati ng System Concepts – 9 th Editi on 6.5 Silberschatz, Galvin and Gagne ©2013
Types of CPU Scheduling
Operati ng System Concepts – 9 th Editi on 6.7 Silberschatz, Galvin and Gagne ©2013
Scheduling Algorithm Optimization Criteria
● Maximize C P U utilization
● Maximize throughput
● Minimize turnaround time
● Minimize waiting time
● Minimize response time
Operati ng System Concepts – 9 th Editi on 6.8 Silberschatz, Galvin and Gagne ©2013