CPU scheduling is the basis of multi-programmed operating systems. By switching the CPU among processes, the operating system can make the computer more productive
- To introduce CPU scheduling, which is the basis for multi-programmed operating systems
- To describe various CPU-scheduling algorithms...
CPU scheduling is the basis of multi-programmed operating systems. By switching the CPU among processes, the operating system can make the computer more productive
- To introduce CPU scheduling, which is the basis for multi-programmed operating systems
- To describe various CPU-scheduling algorithms
- To discuss evaluation criteria for selecting a CPU-scheduling algorithm for a particular system
- To examine the scheduling algorithms of several operating systems
Size: 3.33 MB
Language: en
Added: Jun 30, 2022
Slides: 15 pages
Slide Content
Amrita School of Engineering, Bangalore
Ms. Harika Pudugosula
Teaching Assistant
Department of Electronics & Communication Engineering
•Basic Concepts
•Scheduling Criteria
•Scheduling Algorithms
•Thread Scheduling
•Multiple-Processor Scheduling
•Real-Time CPU Scheduling
•Operating Systems Examples
•Algorithm Evaluation
2
Histogram of CPU-burst Times
7
•AnI/O-boundprogramtypicallyhasmanyshortCPUbursts
•ACPU-boundprogrammighthaveafewlongCPUbursts.
CPU Scheduler
•Short-term/CPUscheduler selects from among the processes inready
queue, and allocates the CPU to one of them
•Queue may be ordered in various ways
•CPU scheduling decisions may take place when a process:
1.Switches from running to waiting state
2.Switches from running to ready state
3.Switches from waiting to ready
4. Terminates
•For situations 1 and 4, there is no choice in terms of scheduling
A new process(if one exists in the ready queue) must be selected for
execution
•However, there is achoice for situations 2 and 3
8