SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processingKamal Acharya
 
Multiprocessor Scheduling
Multiprocessor SchedulingMultiprocessor Scheduling
Multiprocessor SchedulingKhadija Saleem
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Mukesh Chinta
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dosvanamali_vanu
 
Distributed Mutual Exclusion and Distributed Deadlock Detection
Distributed Mutual Exclusion and Distributed Deadlock DetectionDistributed Mutual Exclusion and Distributed Deadlock Detection
Distributed Mutual Exclusion and Distributed Deadlock DetectionSHIKHA GAUTAM
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process CommunicationAdeel Rasheed
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.Ravi Kumar Patel
 
Distributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit ProtocolsDistributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit ProtocolsSachin Chauhan
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating SystemsDr Sandeep Kumar Poonia
 
Critical section problem in operating system.
Critical section problem in operating system.Critical section problem in operating system.
Critical section problem in operating system.MOHIT DADU
 
Transactions and Concurrency Control
Transactions and Concurrency ControlTransactions and Concurrency Control
Transactions and Concurrency ControlDilum Bandara
 
Process in operating system
Process in operating systemProcess in operating system
Process in operating systemChetan Mahawar
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed SystemSunita Sahu
 

What's hot (20)

Memory management
Memory managementMemory management
Memory management
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Multiprocessor Scheduling
Multiprocessor SchedulingMultiprocessor Scheduling
Multiprocessor Scheduling
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
Semaphores
SemaphoresSemaphores
Semaphores
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
 
File system structure
File system structureFile system structure
File system structure
 
Distributed Mutual Exclusion and Distributed Deadlock Detection
Distributed Mutual Exclusion and Distributed Deadlock DetectionDistributed Mutual Exclusion and Distributed Deadlock Detection
Distributed Mutual Exclusion and Distributed Deadlock Detection
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
 
Distributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit ProtocolsDistributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit Protocols
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
 
Critical section problem in operating system.
Critical section problem in operating system.Critical section problem in operating system.
Critical section problem in operating system.
 
System calls
System callsSystem calls
System calls
 
Transactions and Concurrency Control
Transactions and Concurrency ControlTransactions and Concurrency Control
Transactions and Concurrency Control
 
Process in operating system
Process in operating systemProcess in operating system
Process in operating system
 
Transport layer
Transport layer Transport layer
Transport layer
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 

Similar to Multi processor scheduling

Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7Parallel and Distributed Computing Chapter 7
Parallel and Distributed Computing Chapter 7AbdullahMunir32
 
Multi-Threading.pptx
Multi-Threading.pptxMulti-Threading.pptx
Multi-Threading.pptxCHANDRUG31
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelManoraj Pannerselum
 
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTESPARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTESsuthi
 
Types of Operating System-converted.pdf
Types of Operating System-converted.pdfTypes of Operating System-converted.pdf
Types of Operating System-converted.pdfOmid695066
 
Parallel Processing Presentation2
Parallel Processing Presentation2Parallel Processing Presentation2
Parallel Processing Presentation2daniyalqureshi712
 
CSI-503 - 3. Process Scheduling
CSI-503 - 3. Process SchedulingCSI-503 - 3. Process Scheduling
CSI-503 - 3. Process Schedulingghayour abbas
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed SystemsRicha Singh
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu schedulingGRajendra
 
Process Management Operating Systems .pptx
Process Management        Operating Systems .pptxProcess Management        Operating Systems .pptx
Process Management Operating Systems .pptxSAIKRISHNADURVASULA2
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptxsania458451
 

Similar to 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
 
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
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed Systems
 
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
 
Operating system
Operating systemOperating system
Operating system
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptx
 

More from Shashank Kapoor

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 automationShashank Kapoor
 
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 printerShashank Kapoor
 
Nano 3d printing : Two Photon lithography
Nano 3d printing : Two Photon lithographyNano 3d printing : Two Photon lithography
Nano 3d printing : Two Photon lithographyShashank Kapoor
 
MQTT Protocol: IOT Technology
MQTT Protocol: IOT TechnologyMQTT Protocol: IOT Technology
MQTT Protocol: IOT TechnologyShashank Kapoor
 
Real time Canny edge detection
Real time Canny edge detectionReal time Canny edge detection
Real time Canny edge detectionShashank Kapoor
 
Training report of C language
Training report of C languageTraining report of C language
Training report of C languageShashank Kapoor
 
Real time heart monitoring system
Real time heart monitoring systemReal time heart monitoring system
Real time heart monitoring systemShashank Kapoor
 
IFTTT: If This Then That
IFTTT: If This Then ThatIFTTT: If This Then That
IFTTT: If This Then ThatShashank Kapoor
 
Project management : Pert and Cpm
Project management : Pert and CpmProject management : Pert and Cpm
Project management : Pert and CpmShashank Kapoor
 
Bushed pin flange coupling
Bushed pin flange couplingBushed pin flange coupling
Bushed pin flange couplingShashank Kapoor
 
Jigs and there application
Jigs and there applicationJigs and there application
Jigs and there applicationShashank Kapoor
 
Air cooling of electrical equipments
Air cooling of electrical equipmentsAir cooling of electrical equipments
Air cooling of electrical equipmentsShashank Kapoor
 
Mach Number and Shock waves
Mach Number and Shock waves Mach Number and Shock waves
Mach Number and Shock waves Shashank Kapoor
 

More from 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
 

Recently uploaded

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 

Recently uploaded (20)

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 

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