SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Multi- Processor Scheduling:
Multi-core issues, Processor
affinity, load balancing
PRESENTED BY
SHASHANK KAPOOR
CHANDRADEEP GAUTAM
Scheduling
 The process scheduling is the activity of the process manager
that handles the removal of the running process from the CPU
and the selection of another process on the basis of a particular
strategy.
Multi- Processor Scheduling
 Multi-Processor scheduling is an NP-hard optimization problem.
 The problem statement is: "Given a set J of jobs where
job ji has length li and a number of processors m, what is the
minimum possible time required to schedule all jobs
in J on m processors such that none overlap?“
What is Multi- Processor Scheduling ?
 In multiple-processor scheduling multiple CPU’s are available
 Load Sharing becomes possible, as distributed among these
available processor.
 Multiple processor scheduling is more complex as compared to
single processor scheduling.
 Multi-Processor scheduling is of two types:
# Asymmetric Scheduling
# Symmetric Scheduling
Multi- Processor Scheduling:
Asymmetric Approach
In this scheduling approach, all scheduling decisions, I/O processing
and resource allocation are handled by a single processor which is
called the Master Processor and the other processors executes only
the user code. This is simple and reduces the need of data sharing. This
entire scenario is called Asymmetric Multiprocessing.
Multi- Processor Scheduling:
Symmetric Approach
A second approach uses Symmetric Multiprocessing where each
processor is self scheduling. All processes may be in a common
ready queue or each processor may have its own private queue for
ready processes. The scheduling proceeds further by having the
scheduler for each processor examine the ready queue and select
a process to execute.
Multi-Core Issues
 Locking system
As we know that the resources are shared in the multiprocessor
system so there is a need to protect these resources for safe access
among the multiple processors. The main purpose of locking scheme
is to serialize access of the resources by the multiple processors.
 Shared data
When the multiple processor access the same data at the same time
then there may be a chance of inconsistency of data so to protect this
we have to use some protocols or locking scheme.
 Cache coherence
It is the shared resource data which is stored in the multiple local
caches. Suppose there are two clients have a cached copy of
memory and one client change the memory block and the other client
could be left with invalid cache without notification of the change so
this kind of conflict can be resolved by maintaining a coherence view
of the data.
Processor Affinity
When a process runs on a specific processor there are certain effects
on the cache memory. The data most recently accessed by the process
populate the cache for the processor and as a result successive
memory access by the process are often satisfied in the cache memory.
Now if the process migrates to another processor, the contents of the
cache memory must be invalidated for the first processor and the cache
for the second processor must be repopulated. Because of the high
cost of invalidating and repopulating caches, most of the
SMP(symmetric multiprocessing) systems try to avoid migration of
processes from one processor to another and try to keep a process
running on the same processor. This is known as PROCESSOR
AFFINITY.
 There are two types of processor affinity:
# Soft Affinity
# Hard Affinity
Processor Affinity: Soft Affinity
 When an operating system has a policy of attempting
to keep a process running on the same processor but
not guaranteeing it will do so, this situation is called
soft affinity.
Processor Affinity: Hard Affinity
 Some systems such as Linux also provide some
system calls that support Hard Affinity which allows a
process to migrate between processors.
Load Balancing
 Load Balancing is the phenomena which keeps
the workload evenly distributed across all processors in an
SMP system. Load balancing is necessary only on systems
where each processor has its own private queue of process
which are eligible to execute. Load balancing is unnecessary
because once a processor becomes idle it immediately extracts
a runnable process from the common run queue. On
SMP(symmetric multiprocessing), it is important to keep the
workload balanced among all processors to fully utilize the
benefits of having more than one processor else one or more
processor will sit idle while other processors have high
workloads along with lists of processors awaiting the CPU.
 There are two general approaches to load balancing :
# Push Migration
# Pull Migration
 In push migration a task routinely checks the load on each
processor and if it finds an imbalance then it evenly distributes
load on each processors by moving the processes from
overloaded to idle or less busy processors.
Load Balancing : Push Migration
 Pull Migration occurs when an idle processor pulls a waiting task
from a busy processor for its execution.
Load Balancing : Pull Migration

Weitere ähnliche Inhalte

Was ist angesagt?

Operating system structures
Operating system structuresOperating system structures
Operating system structures
Mohd Arif
 

Was ist angesagt? (20)

SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Operating system structures
Operating system structuresOperating system structures
Operating system structures
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
process creation OS
process creation OSprocess creation OS
process creation OS
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
 
Deadlock ppt
Deadlock ppt Deadlock ppt
Deadlock ppt
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Process in operating system
Process in operating systemProcess in operating system
Process in operating system
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Synchronization in distributed computing
Synchronization in distributed computingSynchronization in distributed computing
Synchronization in distributed computing
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
 
Scheduling
SchedulingScheduling
Scheduling
 
Memory management
Memory managementMemory management
Memory management
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
 

Ähnlich wie Multi processor scheduling

Types of Operating System-converted.pdf
Types of Operating System-converted.pdfTypes of Operating System-converted.pdf
Types of Operating System-converted.pdf
Omid695066
 
Parallel Processing Presentation2
Parallel Processing Presentation2Parallel Processing Presentation2
Parallel Processing Presentation2
daniyalqureshi712
 
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptxassignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
23mu36
 
MEMORY MANAGEMENT FHES har ar mahaadev.pptx
MEMORY MANAGEMENT FHES har ar mahaadev.pptxMEMORY MANAGEMENT FHES har ar mahaadev.pptx
MEMORY MANAGEMENT FHES har ar mahaadev.pptx
22bec032
 

Ähnlich wie Multi processor scheduling (20)

Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7
 
Multiprocessor Scheduling
Multiprocessor SchedulingMultiprocessor Scheduling
Multiprocessor Scheduling
 
Multi-Threading.pptx
Multi-Threading.pptxMulti-Threading.pptx
Multi-Threading.pptx
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and Microkernel
 
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTESPARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
 
Types of Operating System-converted.pdf
Types of Operating System-converted.pdfTypes of Operating System-converted.pdf
Types of Operating System-converted.pdf
 
Coa presentation5
Coa presentation5Coa presentation5
Coa presentation5
 
Operating system
Operating systemOperating system
Operating system
 
100-E
100-E100-E
100-E
 
Parallel Processing Presentation2
Parallel Processing Presentation2Parallel Processing Presentation2
Parallel Processing Presentation2
 
OS ppt.pdf
OS ppt.pdfOS ppt.pdf
OS ppt.pdf
 
CSI-503 - 3. Process Scheduling
CSI-503 - 3. Process SchedulingCSI-503 - 3. Process Scheduling
CSI-503 - 3. Process Scheduling
 
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptxassignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed Systems
 
MEMORY MANAGEMENT FHES har ar mahaadev.pptx
MEMORY MANAGEMENT FHES har ar mahaadev.pptxMEMORY MANAGEMENT FHES har ar mahaadev.pptx
MEMORY MANAGEMENT FHES har ar mahaadev.pptx
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Os
OsOs
Os
 
Process Management Operating Systems .pptx
Process Management        Operating Systems .pptxProcess Management        Operating Systems .pptx
Process Management Operating Systems .pptx
 

Mehr von Shashank Kapoor

Mehr von Shashank Kapoor (15)

Rural engineering process : Development of farms by automation
Rural engineering process : Development of  farms by automationRural engineering process : Development of  farms by automation
Rural engineering process : Development of farms by automation
 
Design and analysis of polar, cartesian and delta 3d printer
Design and analysis of polar, cartesian and delta 3d printerDesign and analysis of polar, cartesian and delta 3d printer
Design and analysis of polar, cartesian and delta 3d printer
 
Cfc’s and hcfc’s
Cfc’s and hcfc’sCfc’s and hcfc’s
Cfc’s and hcfc’s
 
Nano 3d printing : Two Photon lithography
Nano 3d printing : Two Photon lithographyNano 3d printing : Two Photon lithography
Nano 3d printing : Two Photon lithography
 
MQTT Protocol: IOT Technology
MQTT Protocol: IOT TechnologyMQTT Protocol: IOT Technology
MQTT Protocol: IOT Technology
 
Real time Canny edge detection
Real time Canny edge detectionReal time Canny edge detection
Real time Canny edge detection
 
Training report of C language
Training report of C languageTraining report of C language
Training report of C language
 
Real time heart monitoring system
Real time heart monitoring systemReal time heart monitoring system
Real time heart monitoring system
 
IFTTT: If This Then That
IFTTT: If This Then ThatIFTTT: If This Then That
IFTTT: If This Then That
 
Project management : Pert and Cpm
Project management : Pert and CpmProject management : Pert and Cpm
Project management : Pert and Cpm
 
Bushed pin flange coupling
Bushed pin flange couplingBushed pin flange coupling
Bushed pin flange coupling
 
Jigs and there application
Jigs and there applicationJigs and there application
Jigs and there application
 
Pert and cpm
Pert and cpmPert and cpm
Pert and cpm
 
Air cooling of electrical equipments
Air cooling of electrical equipmentsAir cooling of electrical equipments
Air cooling of electrical equipments
 
Mach Number and Shock waves
Mach Number and Shock waves Mach Number and Shock waves
Mach Number and Shock waves
 

Kürzlich hochgeladen

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Kürzlich hochgeladen (20)

Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

Multi processor scheduling

  • 1. Multi- Processor Scheduling: Multi-core issues, Processor affinity, load balancing PRESENTED BY SHASHANK KAPOOR CHANDRADEEP GAUTAM
  • 2. Scheduling  The process scheduling is the activity of the process manager that handles the removal of the running process from the CPU and the selection of another process on the basis of a particular strategy.
  • 3. Multi- Processor Scheduling  Multi-Processor scheduling is an NP-hard optimization problem.  The problem statement is: "Given a set J of jobs where job ji has length li and a number of processors m, what is the minimum possible time required to schedule all jobs in J on m processors such that none overlap?“
  • 4. What is Multi- Processor Scheduling ?  In multiple-processor scheduling multiple CPU’s are available  Load Sharing becomes possible, as distributed among these available processor.  Multiple processor scheduling is more complex as compared to single processor scheduling.  Multi-Processor scheduling is of two types: # Asymmetric Scheduling # Symmetric Scheduling
  • 5. Multi- Processor Scheduling: Asymmetric Approach In this scheduling approach, all scheduling decisions, I/O processing and resource allocation are handled by a single processor which is called the Master Processor and the other processors executes only the user code. This is simple and reduces the need of data sharing. This entire scenario is called Asymmetric Multiprocessing.
  • 6. Multi- Processor Scheduling: Symmetric Approach A second approach uses Symmetric Multiprocessing where each processor is self scheduling. All processes may be in a common ready queue or each processor may have its own private queue for ready processes. The scheduling proceeds further by having the scheduler for each processor examine the ready queue and select a process to execute.
  • 7. Multi-Core Issues  Locking system As we know that the resources are shared in the multiprocessor system so there is a need to protect these resources for safe access among the multiple processors. The main purpose of locking scheme is to serialize access of the resources by the multiple processors.  Shared data When the multiple processor access the same data at the same time then there may be a chance of inconsistency of data so to protect this we have to use some protocols or locking scheme.  Cache coherence It is the shared resource data which is stored in the multiple local caches. Suppose there are two clients have a cached copy of memory and one client change the memory block and the other client could be left with invalid cache without notification of the change so this kind of conflict can be resolved by maintaining a coherence view of the data.
  • 8. Processor Affinity When a process runs on a specific processor there are certain effects on the cache memory. The data most recently accessed by the process populate the cache for the processor and as a result successive memory access by the process are often satisfied in the cache memory. Now if the process migrates to another processor, the contents of the cache memory must be invalidated for the first processor and the cache for the second processor must be repopulated. Because of the high cost of invalidating and repopulating caches, most of the SMP(symmetric multiprocessing) systems try to avoid migration of processes from one processor to another and try to keep a process running on the same processor. This is known as PROCESSOR AFFINITY.  There are two types of processor affinity: # Soft Affinity # Hard Affinity
  • 9. Processor Affinity: Soft Affinity  When an operating system has a policy of attempting to keep a process running on the same processor but not guaranteeing it will do so, this situation is called soft affinity.
  • 10. Processor Affinity: Hard Affinity  Some systems such as Linux also provide some system calls that support Hard Affinity which allows a process to migrate between processors.
  • 11. Load Balancing  Load Balancing is the phenomena which keeps the workload evenly distributed across all processors in an SMP system. Load balancing is necessary only on systems where each processor has its own private queue of process which are eligible to execute. Load balancing is unnecessary because once a processor becomes idle it immediately extracts a runnable process from the common run queue. On SMP(symmetric multiprocessing), it is important to keep the workload balanced among all processors to fully utilize the benefits of having more than one processor else one or more processor will sit idle while other processors have high workloads along with lists of processors awaiting the CPU.  There are two general approaches to load balancing : # Push Migration # Pull Migration
  • 12.  In push migration a task routinely checks the load on each processor and if it finds an imbalance then it evenly distributes load on each processors by moving the processes from overloaded to idle or less busy processors. Load Balancing : Push Migration
  • 13.  Pull Migration occurs when an idle processor pulls a waiting task from a busy processor for its execution. Load Balancing : Pull Migration