Operating System (CS2701)
Multi-Processor Scheduling
Dr. Rourab Paul
Computer Science Department, SNU University, Chennai
Operating System
CPU Scheduling in Multiprocessor Systems
Operating System
2
1. Asymmetric Multiprocessing (AMP)
CPU Scheduling in Multiprocessor Systems
Operating System
3
2. Symmetric Multiprocessing (SMP)
Scheduling Strategies
Operating System
4
Scheduling Strategies
Operating System
5
If we select the first option, we have a possible race condition on the shared ready queue and therefore must ensure that two separate processors do not choose to schedule the same thread and that threads are not lost from the queue.
we could use some form of locking to protect the common ready queue from this race condition. Locking would be highly contended, however, as all accesses to the queue would require lock ownership, and accessing the shared queue would likely be a performance bottleneck.
SMP and Multicore Processors
Operating System
6
Traditional SMP:
Modern hardware:
Advantages:
Scheduling Challenges
Operating System
7
Problem:
Impact:�Processor may spend up to 50% of time waiting
Multithreaded Cores
Operating System
8
Example:
Improves CPU utilization and throughput
Chip threading
Operating System
9
Load Balancing in SMP
Operating System
10
Approaches to Load Balancing
Processor Affinity
Operating System
11
Concept
Types of Processor Affinity
Thank You
Operating System
12