SlideShare a Scribd company logo
Multiprocessor Scheduling
SHOAIB MANZOOR
F19-MSCS-5020
Multicore Processors
 Multiple CPU cores are packed into single chip.
 Making single CPU too fast by this technique.
Difficulties in Multicore
 C Program uses only one CPU.
 Adding more CPUs doesn’t make the program run faster.
 To OVERCOME this difficulty we need to rewrite the C program to run in parallel
(Threads).
Difference B/W Single CPU and Multi-CPU
Hardware
 Use of Hardware Caches.
 Caches are small, fast memories that hold copies of popular data.
Temporal locality and spatial locality
 Temporal locality is that when a piece of data is accessed, it is likely to be
accessed again in the near future. E.g. Loop
 Spatial locality is that if a program accesses a data item at address x, it is likely
to access data items near x as well. E.g. Arrays
Cache Coherence
 Multiple processors with single shared memory.
Bus Snooping
 Each cache pays attention to memory updates by observing the bus that
connects them to main memory.
 it will notice the change.
 Then it will remove it from its cache or it will update the data.
Locking
 In this case, allocating a simple mutex (e.g., pthread mutex tm;)
and then adding a lock at the beginning of the routine and an
unlock at the end will solve the problem, ensuring that the code will
execute as desired.
Cache Affinity
 One process is running on CPU1 and then terminates and wants to run again it will
run fast on CPU!.
 But if this process will run on diff processor every time then performance of this
process will be worse because each time it has to reload state each time.
SQMS
 Single Queue Multiprocessor Scheduling.
 Reuse the basic framework for single processor scheduling, by putting all jobs that
need to be scheduled into a single queue.
Problems in SQMS
 Lack of Scalability
 Cache Affinity
Overcome to Cache Affinity
Multi-Queue Scheduling
 Problems caused in single-queue schedulers, some systems opt for multiple
queues, e.g., one per CPU.
 By using RR system will behave like this
MQS Drawback and Solution
 What if A and C finishes ealrly?
 Solution:
 Migration is the only option to overcome this drawback.
Linux Multiprocessor Schedulers
 O(1) scheduler.
 Completely Fair Scheduler (CFS).
 BF Scheduler (BFS).
 Both O(1) and CFS use multiple queues, whereas BFS uses a single queue,
Thank you
Any Question???

More Related Content

What's hot

Multiprocessors(performance and synchronization issues)
Multiprocessors(performance and synchronization issues)Multiprocessors(performance and synchronization issues)
Multiprocessors(performance and synchronization issues)
Gaurav Dalvi
 
Wish list from PostgreSQL - Linux Kernel Summit 2009
Wish list from PostgreSQL - Linux Kernel Summit 2009Wish list from PostgreSQL - Linux Kernel Summit 2009
Wish list from PostgreSQL - Linux Kernel Summit 2009
Takahiro Itagaki
 
Multiprocessor system
Multiprocessor systemMultiprocessor system
Multiprocessor system
El-Moataz Bellah Osama
 
Lecture 6.1
Lecture  6.1Lecture  6.1
Lecture 6.1Mr SMAK
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
Kamal Acharya
 
Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threading
babuece
 
Introduction to Advance Computer Architecture
Introduction to Advance Computer ArchitectureIntroduction to Advance Computer Architecture
Introduction to Advance Computer Architecture
babuece
 
Multiprocessing operating systems
Multiprocessing operating systemsMultiprocessing operating systems
Multiprocessing operating systems
Chathurangi Shyalika
 
Cache memory
Cache memory Cache memory
Cache memory
Zalal Udeen
 
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory Multiprocessors
Salvatore La Bua
 
Symmetric multiprocessing
Symmetric multiprocessingSymmetric multiprocessing
Symmetric multiprocessing
Mohammad Ali Khan
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
Mazin Alwaaly
 
Cache memory.12
Cache memory.12Cache memory.12
Cache memory.12myrajendra
 
Cache memory
Cache memoryCache memory
Cache memory
chauhankapil
 
Chapter 08
Chapter 08Chapter 08
Chapter 08 Google
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
vampugani
 
An Introduction to threads
An Introduction to threadsAn Introduction to threads
An Introduction to threads
Zahra Sadeghi
 
multi processors
multi processorsmulti processors
multi processors
Acad
 
Multithreading models
Multithreading modelsMultithreading models
Multithreading modelsanoopkrishna2
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
Satvik Khurana
 

What's hot (20)

Multiprocessors(performance and synchronization issues)
Multiprocessors(performance and synchronization issues)Multiprocessors(performance and synchronization issues)
Multiprocessors(performance and synchronization issues)
 
Wish list from PostgreSQL - Linux Kernel Summit 2009
Wish list from PostgreSQL - Linux Kernel Summit 2009Wish list from PostgreSQL - Linux Kernel Summit 2009
Wish list from PostgreSQL - Linux Kernel Summit 2009
 
Multiprocessor system
Multiprocessor systemMultiprocessor system
Multiprocessor system
 
Lecture 6.1
Lecture  6.1Lecture  6.1
Lecture 6.1
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threading
 
Introduction to Advance Computer Architecture
Introduction to Advance Computer ArchitectureIntroduction to Advance Computer Architecture
Introduction to Advance Computer Architecture
 
Multiprocessing operating systems
Multiprocessing operating systemsMultiprocessing operating systems
Multiprocessing operating systems
 
Cache memory
Cache memory Cache memory
Cache memory
 
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory Multiprocessors
 
Symmetric multiprocessing
Symmetric multiprocessingSymmetric multiprocessing
Symmetric multiprocessing
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
 
Cache memory.12
Cache memory.12Cache memory.12
Cache memory.12
 
Cache memory
Cache memoryCache memory
Cache memory
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
An Introduction to threads
An Introduction to threadsAn Introduction to threads
An Introduction to threads
 
multi processors
multi processorsmulti processors
multi processors
 
Multithreading models
Multithreading modelsMultithreading models
Multithreading models
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 

Similar to Multiprocessor Scheduling

Linux Device Driver parallelism using SMP and Kernel Pre-emption
Linux Device Driver parallelism using SMP and Kernel Pre-emptionLinux Device Driver parallelism using SMP and Kernel Pre-emption
Linux Device Driver parallelism using SMP and Kernel Pre-emption
Hemanth Venkatesh
 
Bus Based Multiprocessors v2
Bus Based Multiprocessors v2Bus Based Multiprocessors v2
Bus Based Multiprocessors v2
Mustafa Yumurtacı
 
10 Multicore 07
10 Multicore 0710 Multicore 07
10 Multicore 07timcrack
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
Gd Goenka University
 
Chapter 10
Chapter 10Chapter 10
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTESPARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
suthi
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and Microkernel
Manoraj Pannerselum
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
Zena Abo-Altaheen
 
Introduction to multi core
Introduction to multi coreIntroduction to multi core
Introduction to multi coremukul bhardwaj
 
Shared memory Parallelism (NOTES)
Shared memory Parallelism (NOTES)Shared memory Parallelism (NOTES)
Shared memory Parallelism (NOTES)
Subhajit Sahu
 
Dosass2
Dosass2Dosass2
Dosass2
ShivaliKundra
 
Unix operating system basics
Unix operating system basicsUnix operating system basics
Unix operating system basics
Sankar Suriya
 
Operating System Lecture 4
Operating System Lecture 4Operating System Lecture 4
Operating System Lecture 4
Dr. Ahmed J. Obaid
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
PrabhanshuKatiyar1
 
Oversimplified CA
Oversimplified CAOversimplified CA
Oversimplified CA
PrabhanshuKatiyar1
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
VISHAL DONGA
 

Similar to Multiprocessor Scheduling (20)

Linux Device Driver parallelism using SMP and Kernel Pre-emption
Linux Device Driver parallelism using SMP and Kernel Pre-emptionLinux Device Driver parallelism using SMP and Kernel Pre-emption
Linux Device Driver parallelism using SMP and Kernel Pre-emption
 
Bus Based Multiprocessors v2
Bus Based Multiprocessors v2Bus Based Multiprocessors v2
Bus Based Multiprocessors v2
 
Cache memory
Cache memoryCache memory
Cache memory
 
Week5
Week5Week5
Week5
 
10 Multicore 07
10 Multicore 0710 Multicore 07
10 Multicore 07
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTESPARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
PARALLEL ARCHITECTURE AND COMPUTING - SHORT NOTES
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and Microkernel
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
 
Introduction to multi core
Introduction to multi coreIntroduction to multi core
Introduction to multi core
 
Shared memory Parallelism (NOTES)
Shared memory Parallelism (NOTES)Shared memory Parallelism (NOTES)
Shared memory Parallelism (NOTES)
 
Dosass2
Dosass2Dosass2
Dosass2
 
Unix operating system basics
Unix operating system basicsUnix operating system basics
Unix operating system basics
 
Chap2 slides
Chap2 slidesChap2 slides
Chap2 slides
 
Operating System Lecture 4
Operating System Lecture 4Operating System Lecture 4
Operating System Lecture 4
 
Wiki 2
Wiki 2Wiki 2
Wiki 2
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Oversimplified CA
Oversimplified CAOversimplified CA
Oversimplified CA
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
 

More from oDesk

1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation
1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation
1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation
oDesk
 
Formation of a Company
Formation of a Company Formation of a Company
Formation of a Company
oDesk
 
Online Testing (Examination) System
Online Testing (Examination) SystemOnline Testing (Examination) System
Online Testing (Examination) System
oDesk
 
Global Warming (full topic, Causes, impacts,Solution etc.)
Global Warming (full topic, Causes, impacts,Solution etc.)Global Warming (full topic, Causes, impacts,Solution etc.)
Global Warming (full topic, Causes, impacts,Solution etc.)
oDesk
 
Customer Relationship Management
Customer Relationship  ManagementCustomer Relationship  Management
Customer Relationship Management
oDesk
 
Sorting (Bubble,Merge,Selection sort)
Sorting (Bubble,Merge,Selection sort)Sorting (Bubble,Merge,Selection sort)
Sorting (Bubble,Merge,Selection sort)
oDesk
 

More from oDesk (6)

1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation
1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation
1G, 2G, 3G, 4G, 5G. Best topic for telecom presentation
 
Formation of a Company
Formation of a Company Formation of a Company
Formation of a Company
 
Online Testing (Examination) System
Online Testing (Examination) SystemOnline Testing (Examination) System
Online Testing (Examination) System
 
Global Warming (full topic, Causes, impacts,Solution etc.)
Global Warming (full topic, Causes, impacts,Solution etc.)Global Warming (full topic, Causes, impacts,Solution etc.)
Global Warming (full topic, Causes, impacts,Solution etc.)
 
Customer Relationship Management
Customer Relationship  ManagementCustomer Relationship  Management
Customer Relationship Management
 
Sorting (Bubble,Merge,Selection sort)
Sorting (Bubble,Merge,Selection sort)Sorting (Bubble,Merge,Selection sort)
Sorting (Bubble,Merge,Selection sort)
 

Recently uploaded

哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
theahmadsaood
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
AlejandraGmez176757
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
alex933524
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 

Recently uploaded (20)

哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 

Multiprocessor Scheduling

  • 2. Multicore Processors  Multiple CPU cores are packed into single chip.  Making single CPU too fast by this technique.
  • 3. Difficulties in Multicore  C Program uses only one CPU.  Adding more CPUs doesn’t make the program run faster.  To OVERCOME this difficulty we need to rewrite the C program to run in parallel (Threads).
  • 4. Difference B/W Single CPU and Multi-CPU Hardware  Use of Hardware Caches.  Caches are small, fast memories that hold copies of popular data.
  • 5. Temporal locality and spatial locality  Temporal locality is that when a piece of data is accessed, it is likely to be accessed again in the near future. E.g. Loop  Spatial locality is that if a program accesses a data item at address x, it is likely to access data items near x as well. E.g. Arrays
  • 6. Cache Coherence  Multiple processors with single shared memory.
  • 7. Bus Snooping  Each cache pays attention to memory updates by observing the bus that connects them to main memory.  it will notice the change.  Then it will remove it from its cache or it will update the data.
  • 8. Locking  In this case, allocating a simple mutex (e.g., pthread mutex tm;) and then adding a lock at the beginning of the routine and an unlock at the end will solve the problem, ensuring that the code will execute as desired.
  • 9. Cache Affinity  One process is running on CPU1 and then terminates and wants to run again it will run fast on CPU!.  But if this process will run on diff processor every time then performance of this process will be worse because each time it has to reload state each time.
  • 10. SQMS  Single Queue Multiprocessor Scheduling.  Reuse the basic framework for single processor scheduling, by putting all jobs that need to be scheduled into a single queue.
  • 11. Problems in SQMS  Lack of Scalability  Cache Affinity
  • 12. Overcome to Cache Affinity
  • 13. Multi-Queue Scheduling  Problems caused in single-queue schedulers, some systems opt for multiple queues, e.g., one per CPU.  By using RR system will behave like this
  • 14. MQS Drawback and Solution  What if A and C finishes ealrly?  Solution:  Migration is the only option to overcome this drawback.
  • 15. Linux Multiprocessor Schedulers  O(1) scheduler.  Completely Fair Scheduler (CFS).  BF Scheduler (BFS).  Both O(1) and CFS use multiple queues, whereas BFS uses a single queue,