SlideShare a Scribd company logo
6
Most read
7
Most read
11
Most read
Operating System 31
Multiple-Processor Scheduling
Prof Neeraj Bhargava
Vaibhav Khanna
Department of Computer Science
School of Engineering and Systems Sciences
Maharshi Dayanand Saraswati University Ajmer
Multiple-Processor Scheduling
• CPU scheduling more complex when multiple CPUs are
available
• Homogeneous processors within a multiprocessor
• Asymmetric multiprocessing – only one processor
accesses the system data structures, alleviating the need
for data sharing
• Symmetric multiprocessing (SMP) – each processor is
self-scheduling, all processes in common ready queue, or
each has its own private queue of ready processes
– Currently, most common
• Processor affinity – process has affinity for processor on
which it is currently running
– soft affinity
– hard affinity
– Variations including processor sets
NUMA and CPU Scheduling
Note that memory-placement algorithms can also consider affinity
Multiple-Processor Scheduling – Load Balancing
• If SMP, need to keep all CPUs loaded
for efficiency
• Load balancing attempts to keep
workload evenly distributed
• Push migration – periodic task checks
load on each processor, and if found
pushes task from overloaded CPU to
other CPUs
• Pull migration – idle processors pulls
waiting task from busy processor
Multicore Processors
• Recent trend to place multiple
processor cores on same physical chip
• Faster and consumes less power
• Multiple threads per core also growing
– Takes advantage of memory stall to make
progress on another thread while
memory retrieve happens
Multithreaded Multicore System
Real-Time CPU Scheduling
• Can present obvious
challenges
• Soft real-time systems –
no guarantee as to when
critical real-time process
will be scheduled
• Hard real-time systems –
task must be serviced by
its deadline
• Two types of latencies
affect performance
1. Interrupt latency – time from arrival of interrupt
to start of routine that services interrupt
2. Dispatch latency – time for schedule to take
current process off CPU and switch to another
Real-Time CPU Scheduling (Cont.)
• Conflict phase of
dispatch latency:
1. Preemption of
any process
running in
kernel mode
2. Release by low-
priority process
of resources
needed by high-
priority
processes
Priority-based Scheduling
• For real-time scheduling, scheduler must support
preemptive, priority-based scheduling
– But only guarantees soft real-time
• For hard real-time must also provide ability to
meet deadlines
• Processes have new characteristics: periodic ones
require CPU at constant intervals
– Has processing time t, deadline d, period p
– 0 ≤ t ≤ d ≤ p
– Rate of periodic task is 1/p
Virtualization and Scheduling
• Virtualization software schedules
multiple guests onto CPU(s)
• Each guest doing its own scheduling
– Not knowing it doesn’t own the CPUs
– Can result in poor response time
– Can effect time-of-day clocks in guests
• Can undo good scheduling algorithm
efforts of guests
Rate Montonic Scheduling
• A priority is assigned based on the
inverse of its period
• Shorter periods = higher priority;
• Longer periods = lower priority
• P1 is assigned a higher priority than P2.
Missed Deadlines with Rate Monotonic Scheduling
Earliest Deadline First Scheduling (EDF)
• Priorities are assigned according to
deadlines:
the earlier the deadline, the higher the
priority;
the later the deadline, the lower the
priority
Proportional Share Scheduling
• T shares are allocated among all
processes in the system
• An application receives N shares
where N < T
• This ensures each application will
receive N / T of the total processor
time
Assignment
• Explain Multiple-Processor Scheduling – Load
Balancing

More Related Content

PDF
Interconnection Network
PDF
Process scheduling (CPU Scheduling)
PPTX
Scheduling Definition, objectives and types
PPTX
Real time Operating System
PPTX
Deadlock ppt
PPT
Heuristc Search Techniques
PPT
message passing
Interconnection Network
Process scheduling (CPU Scheduling)
Scheduling Definition, objectives and types
Real time Operating System
Deadlock ppt
Heuristc Search Techniques
message passing

What's hot (20)

PPTX
SCHEDULING ALGORITHMS
PPTX
Planning in AI(Partial order planning)
PPTX
Multi processor scheduling
PPTX
contiguous memory allocation.pptx
PPTX
MULTILEVEL QUEUE SCHEDULING
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPTX
Threads (operating System)
PPTX
Computer Networks: Quality of service
PPTX
Distributed Operating Systems
PPTX
Graph coloring using backtracking
PDF
Mobile computing (Wireless) Medium Access Control (MAC)
PPT
Real-Time Scheduling
PPT
17 cpu scheduling and scheduling criteria
PPTX
Routing algorithm
PPTX
Message and Stream Oriented Communication
PPT
Introduction to System Calls
PPTX
Congestion control
PPT
Communication primitives
PDF
Deadlock in Distributed Systems
PPTX
Threads .ppt
SCHEDULING ALGORITHMS
Planning in AI(Partial order planning)
Multi processor scheduling
contiguous memory allocation.pptx
MULTILEVEL QUEUE SCHEDULING
INTER PROCESS COMMUNICATION (IPC).pptx
Threads (operating System)
Computer Networks: Quality of service
Distributed Operating Systems
Graph coloring using backtracking
Mobile computing (Wireless) Medium Access Control (MAC)
Real-Time Scheduling
17 cpu scheduling and scheduling criteria
Routing algorithm
Message and Stream Oriented Communication
Introduction to System Calls
Congestion control
Communication primitives
Deadlock in Distributed Systems
Threads .ppt
Ad

Similar to Operating system 31 multiple processor scheduling (20)

PDF
Ch6 cpu scheduling
PPT
MODULE 2 for the cpu shcheduling and.ppt
PPT
Introduction of cpu scheduling in operating system
PDF
operating system (1).pdf
PPTX
Lecture 4 process cpu scheduling
PDF
Section05 scheduling
PPT
10-MultiprocessorScheduling chapter8.ppt
PPT
06-scheduling.ppt including multiple CPUs
PPTX
Operating system 28 fundamental of scheduling
PPT
ch_scheduling (1).ppt
PDF
CPU Scheduling Part-I.pdf
PPTX
topic cpu scheduling in operating system.pptx
PPT
Scheduling.ppt with operating system slides
PPT
Planificacion
PPTX
Lecture 7.pptx Operating system lecture
PPT
CPU Scheduling
PPT
CPU scheduling in Operating System Explanation
PPTX
dsa.pptx
PPTX
UNIPROCESS SCHEDULING.pptx
PPTX
Os concepts 4 functions of os
Ch6 cpu scheduling
MODULE 2 for the cpu shcheduling and.ppt
Introduction of cpu scheduling in operating system
operating system (1).pdf
Lecture 4 process cpu scheduling
Section05 scheduling
10-MultiprocessorScheduling chapter8.ppt
06-scheduling.ppt including multiple CPUs
Operating system 28 fundamental of scheduling
ch_scheduling (1).ppt
CPU Scheduling Part-I.pdf
topic cpu scheduling in operating system.pptx
Scheduling.ppt with operating system slides
Planificacion
Lecture 7.pptx Operating system lecture
CPU Scheduling
CPU scheduling in Operating System Explanation
dsa.pptx
UNIPROCESS SCHEDULING.pptx
Os concepts 4 functions of os
Ad

More from Vaibhav Khanna (20)

PPTX
Information and network security 47 authentication applications
PPTX
Information and network security 46 digital signature algorithm
PPTX
Information and network security 45 digital signature standard
PPTX
Information and network security 44 direct digital signatures
PPTX
Information and network security 43 digital signatures
PPTX
Information and network security 42 security of message authentication code
PPTX
Information and network security 41 message authentication code
PPTX
Information and network security 40 sha3 secure hash algorithm
PPTX
Information and network security 39 secure hash algorithm
PPTX
Information and network security 38 birthday attacks and security of hash fun...
PPTX
Information and network security 37 hash functions and message authentication
PPTX
Information and network security 35 the chinese remainder theorem
PPTX
Information and network security 34 primality
PPTX
Information and network security 33 rsa algorithm
PPTX
Information and network security 32 principles of public key cryptosystems
PPTX
Information and network security 31 public key cryptography
PPTX
Information and network security 30 random numbers
PPTX
Information and network security 29 international data encryption algorithm
PPTX
Information and network security 28 blowfish
PPTX
Information and network security 27 triple des
Information and network security 47 authentication applications
Information and network security 46 digital signature algorithm
Information and network security 45 digital signature standard
Information and network security 44 direct digital signatures
Information and network security 43 digital signatures
Information and network security 42 security of message authentication code
Information and network security 41 message authentication code
Information and network security 40 sha3 secure hash algorithm
Information and network security 39 secure hash algorithm
Information and network security 38 birthday attacks and security of hash fun...
Information and network security 37 hash functions and message authentication
Information and network security 35 the chinese remainder theorem
Information and network security 34 primality
Information and network security 33 rsa algorithm
Information and network security 32 principles of public key cryptosystems
Information and network security 31 public key cryptography
Information and network security 30 random numbers
Information and network security 29 international data encryption algorithm
Information and network security 28 blowfish
Information and network security 27 triple des

Recently uploaded (20)

PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
System and Network Administration Chapter 2
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
history of c programming in notes for students .pptx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Nekopoi APK 2025 free lastest update
PDF
AI in Product Development-omnex systems
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Softaken Excel to vCard Converter Software.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Online Work Permit System for Fast Permit Processing
Internet Downloader Manager (IDM) Crack 6.42 Build 41
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
System and Network Administration Chapter 2
How to Migrate SBCGlobal Email to Yahoo Easily
history of c programming in notes for students .pptx
Odoo POS Development Services by CandidRoot Solutions
Nekopoi APK 2025 free lastest update
AI in Product Development-omnex systems
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Lecture 3: Operating Systems Introduction to Computer Hardware Systems

Operating system 31 multiple processor scheduling

  • 1. Operating System 31 Multiple-Processor Scheduling Prof Neeraj Bhargava Vaibhav Khanna Department of Computer Science School of Engineering and Systems Sciences Maharshi Dayanand Saraswati University Ajmer
  • 2. Multiple-Processor Scheduling • CPU scheduling more complex when multiple CPUs are available • Homogeneous processors within a multiprocessor • Asymmetric multiprocessing – only one processor accesses the system data structures, alleviating the need for data sharing • Symmetric multiprocessing (SMP) – each processor is self-scheduling, all processes in common ready queue, or each has its own private queue of ready processes – Currently, most common • Processor affinity – process has affinity for processor on which it is currently running – soft affinity – hard affinity – Variations including processor sets
  • 3. NUMA and CPU Scheduling Note that memory-placement algorithms can also consider affinity
  • 4. Multiple-Processor Scheduling – Load Balancing • If SMP, need to keep all CPUs loaded for efficiency • Load balancing attempts to keep workload evenly distributed • Push migration – periodic task checks load on each processor, and if found pushes task from overloaded CPU to other CPUs • Pull migration – idle processors pulls waiting task from busy processor
  • 5. Multicore Processors • Recent trend to place multiple processor cores on same physical chip • Faster and consumes less power • Multiple threads per core also growing – Takes advantage of memory stall to make progress on another thread while memory retrieve happens
  • 7. Real-Time CPU Scheduling • Can present obvious challenges • Soft real-time systems – no guarantee as to when critical real-time process will be scheduled • Hard real-time systems – task must be serviced by its deadline • Two types of latencies affect performance 1. Interrupt latency – time from arrival of interrupt to start of routine that services interrupt 2. Dispatch latency – time for schedule to take current process off CPU and switch to another
  • 8. Real-Time CPU Scheduling (Cont.) • Conflict phase of dispatch latency: 1. Preemption of any process running in kernel mode 2. Release by low- priority process of resources needed by high- priority processes
  • 9. Priority-based Scheduling • For real-time scheduling, scheduler must support preemptive, priority-based scheduling – But only guarantees soft real-time • For hard real-time must also provide ability to meet deadlines • Processes have new characteristics: periodic ones require CPU at constant intervals – Has processing time t, deadline d, period p – 0 ≤ t ≤ d ≤ p – Rate of periodic task is 1/p
  • 10. Virtualization and Scheduling • Virtualization software schedules multiple guests onto CPU(s) • Each guest doing its own scheduling – Not knowing it doesn’t own the CPUs – Can result in poor response time – Can effect time-of-day clocks in guests • Can undo good scheduling algorithm efforts of guests
  • 11. Rate Montonic Scheduling • A priority is assigned based on the inverse of its period • Shorter periods = higher priority; • Longer periods = lower priority • P1 is assigned a higher priority than P2.
  • 12. Missed Deadlines with Rate Monotonic Scheduling
  • 13. Earliest Deadline First Scheduling (EDF) • Priorities are assigned according to deadlines: the earlier the deadline, the higher the priority; the later the deadline, the lower the priority
  • 14. Proportional Share Scheduling • T shares are allocated among all processes in the system • An application receives N shares where N < T • This ensures each application will receive N / T of the total processor time
  • 15. Assignment • Explain Multiple-Processor Scheduling – Load Balancing