SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
Dept. of Computer Science – FITA – HUA




          Van Hoang Nguyen
          Mail: startnewday85@gmail.com
          Department of Computer Science – FITA – HUA



Advanced Operating System Course ---------------------------------- Fall 2012
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




             › Communication Techniques
                   › Multiprocessor
                   › Multicomputer
                   › Distributed System



Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   OS 1   OS 2


                   OS 3   OS 4




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   OS Code




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                                          OS Code




             › static memory allocation
             › no data sharing
             › no parallel applications


Van Hoang Nguyen
Advanced Operating System – Fall 2012




                      OS




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                      OS




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                                                           OS




             › balances processes and memory dynamically
             › eliminates the master CPU bottleneck


Van Hoang Nguyen
Advanced Operating System – Fall 2012
Dead Lock problems




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                         Not work
     • TSL instruction is non-trivial in SMPs




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Busy waiting/spin lock

             › Cache thrashing




Spinning to wait for a lock is not always a bad idea
Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Spinning vs. Switching

             › Scheduling critical section may be held




             › if critical sections are short spinning may be better than blocking
             › static analysis of critical section duration can determine whether to spin
             or block
             › dynamic analysis can improve performance


Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Single processor scheduling

             › Which thread should be run next? ---- Time Sharing


     •Multiprocessor scheduling

             › Which thread should be run next? --- Time Sharing
             › Which CPU to run it on?          --- Space Sharing



Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Time sharing approach


     • Space sharing approach




Van Hoang Nguyen
Advanced Operating System – Fall 2012



     • Time sharing approach




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Message passing performance




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Message passing performance




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Message passing performance




                   Sacrifice protection for performance
Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Programming model




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Programming model




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Programming model




                   › Send with copy
                   › User-level interrupt
                   › Copy on write

Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Programming model

             › False sharing
             › Consistency




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Multiprocessor



     • Multicomputer




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Processor allocation Algorithms’ characteristics




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • A graph-theoretic deterministic algorithm




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Sender-initiated distributed heuristic algorithm




Van Hoang Nguyen
Advanced Operating System – Fall 2012




     • Receiver-initiated distributed heuristic algorithm




Van Hoang Nguyen
Advanced Operating System – Fall 2012



    Comparing multiprocessors, multicomputers, distributed systems
                Item        Multiprocessor      Multicomputer            Distributed system

     Node configuration   CPU                CPU, RAM, IC            Complete computer

     Node peripherals     All shared         Shared exc. May be      Full set per node
                                             disk
     Location             Same rack          Same room               Possibly world wide

     Inter-node           Shared RAM         Dedicated               Traditional network
     communication                           interconnect
     Operating systems    One, shared        Multiple, same          Possibly all different

     File systems         One, shared        One, shared             Each node has own

     Administration       One organization   One organization        Many organizations



Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen

Contenu connexe

En vedette

Utility software
Utility softwareUtility software
Utility softwareadeang47
 
Chapter 08
Chapter 08Chapter 08
Chapter 08 Google
 
PROPRIETARY AND OPEN SOURCE SOFTWARE
PROPRIETARY AND OPEN SOURCE SOFTWARE PROPRIETARY AND OPEN SOURCE SOFTWARE
PROPRIETARY AND OPEN SOURCE SOFTWARE Kak Yong
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating systemtittuajay
 
Chapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemChapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemShafaan Khaliq Bhatti
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating SystemHemant Raj
 
types of operating system
types of operating systemtypes of operating system
types of operating systemMahira Rashdi
 
Multi core processors
Multi core processorsMulti core processors
Multi core processorsAdithya Bhat
 

En vedette (15)

13. multiprocessing
13. multiprocessing13. multiprocessing
13. multiprocessing
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Utility software
Utility softwareUtility software
Utility software
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
PROPRIETARY AND OPEN SOURCE SOFTWARE
PROPRIETARY AND OPEN SOURCE SOFTWARE PROPRIETARY AND OPEN SOURCE SOFTWARE
PROPRIETARY AND OPEN SOURCE SOFTWARE
 
Cluster computing
Cluster computingCluster computing
Cluster computing
 
Device Drivers
Device DriversDevice Drivers
Device Drivers
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
Memory management
Memory managementMemory management
Memory management
 
Chapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemChapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating System
 
Types Of Operating Systems
Types Of Operating SystemsTypes Of Operating Systems
Types Of Operating Systems
 
Types of Operating System
Types of Operating SystemTypes of Operating System
Types of Operating System
 
types of operating system
types of operating systemtypes of operating system
types of operating system
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
Multi core processors
Multi core processorsMulti core processors
Multi core processors
 

Similaire à Multiple processor systems

Introduction to AOS course
Introduction to AOS courseIntroduction to AOS course
Introduction to AOS courseHoang Nguyen
 
Managing High Availability with Low Cost
Managing High Availability with Low CostManaging High Availability with Low Cost
Managing High Availability with Low CostDataLeader.io
 
Tiery Eyed
Tiery EyedTiery Eyed
Tiery EyedZendCon
 
Galvin-operating System(Ch1)
Galvin-operating System(Ch1)Galvin-operating System(Ch1)
Galvin-operating System(Ch1)dsuyal1
 

Similaire à Multiple processor systems (6)

Introduction to AOS course
Introduction to AOS courseIntroduction to AOS course
Introduction to AOS course
 
Managing High Availability with Low Cost
Managing High Availability with Low CostManaging High Availability with Low Cost
Managing High Availability with Low Cost
 
Tiery Eyed
Tiery EyedTiery Eyed
Tiery Eyed
 
A Drivers Saga – Mastering Windows Deployment
A Drivers Saga – Mastering Windows DeploymentA Drivers Saga – Mastering Windows Deployment
A Drivers Saga – Mastering Windows Deployment
 
saurabh soni rac
saurabh soni racsaurabh soni rac
saurabh soni rac
 
Galvin-operating System(Ch1)
Galvin-operating System(Ch1)Galvin-operating System(Ch1)
Galvin-operating System(Ch1)
 

Plus de Hoang Nguyen

GANs and Applications
GANs and ApplicationsGANs and Applications
GANs and ApplicationsHoang Nguyen
 
Scrum - An introduction
Scrum - An introductionScrum - An introduction
Scrum - An introductionHoang Nguyen
 
Introduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentIntroduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentHoang Nguyen
 
Conistency of random forests
Conistency of random forestsConistency of random forests
Conistency of random forestsHoang Nguyen
 
Trust - Digital Signature
Trust - Digital SignatureTrust - Digital Signature
Trust - Digital SignatureHoang Nguyen
 
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
SOME SECURITY CHALLENGES  IN CLOUD COMPUTINGSOME SECURITY CHALLENGES  IN CLOUD COMPUTING
SOME SECURITY CHALLENGES IN CLOUD COMPUTINGHoang Nguyen
 
Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision MakingHoang Nguyen
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background KnowledgeHoang Nguyen
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security CourseHoang Nguyen
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS CourseHoang Nguyen
 
Testing in the lifecycle
Testing in the lifecycleTesting in the lifecycle
Testing in the lifecycleHoang Nguyen
 
Fundamentals of Testing 2
Fundamentals of Testing 2Fundamentals of Testing 2
Fundamentals of Testing 2Hoang Nguyen
 

Plus de Hoang Nguyen (20)

GANs and Applications
GANs and ApplicationsGANs and Applications
GANs and Applications
 
Scrum - An introduction
Scrum - An introductionScrum - An introduction
Scrum - An introduction
 
ORM in Django
ORM in DjangoORM in Django
ORM in Django
 
Introduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentIntroduction to Cross-platform App Development
Introduction to Cross-platform App Development
 
Conistency of random forests
Conistency of random forestsConistency of random forests
Conistency of random forests
 
Trust - Digital Signature
Trust - Digital SignatureTrust - Digital Signature
Trust - Digital Signature
 
Key Exchange
Key ExchangeKey Exchange
Key Exchange
 
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
SOME SECURITY CHALLENGES  IN CLOUD COMPUTINGSOME SECURITY CHALLENGES  IN CLOUD COMPUTING
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
 
Stream ciphers
Stream ciphersStream ciphers
Stream ciphers
 
Classical ciphers
Classical ciphersClassical ciphers
Classical ciphers
 
Confidentiality
ConfidentialityConfidentiality
Confidentiality
 
Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision Making
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background Knowledge
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security Course
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS Course
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
Nosql intro
Nosql introNosql intro
Nosql intro
 
Static Testing
Static TestingStatic Testing
Static Testing
 
Testing in the lifecycle
Testing in the lifecycleTesting in the lifecycle
Testing in the lifecycle
 
Fundamentals of Testing 2
Fundamentals of Testing 2Fundamentals of Testing 2
Fundamentals of Testing 2
 

Multiple processor systems

  • 1. Dept. of Computer Science – FITA – HUA Van Hoang Nguyen Mail: startnewday85@gmail.com Department of Computer Science – FITA – HUA Advanced Operating System Course ---------------------------------- Fall 2012
  • 2. Advanced Operating System – Fall 2012 Van Hoang Nguyen
  • 3. Advanced Operating System – Fall 2012 › Communication Techniques › Multiprocessor › Multicomputer › Distributed System Van Hoang Nguyen
  • 4. Advanced Operating System – Fall 2012 OS 1 OS 2 OS 3 OS 4 Van Hoang Nguyen
  • 5. Advanced Operating System – Fall 2012 OS Code Van Hoang Nguyen
  • 6. Advanced Operating System – Fall 2012 OS Code › static memory allocation › no data sharing › no parallel applications Van Hoang Nguyen
  • 7. Advanced Operating System – Fall 2012 OS Van Hoang Nguyen
  • 8. Advanced Operating System – Fall 2012 OS Van Hoang Nguyen
  • 9. Advanced Operating System – Fall 2012 OS › balances processes and memory dynamically › eliminates the master CPU bottleneck Van Hoang Nguyen
  • 10. Advanced Operating System – Fall 2012 Dead Lock problems Van Hoang Nguyen
  • 11. Advanced Operating System – Fall 2012 Not work • TSL instruction is non-trivial in SMPs Van Hoang Nguyen
  • 12. Advanced Operating System – Fall 2012 • Busy waiting/spin lock › Cache thrashing Spinning to wait for a lock is not always a bad idea Van Hoang Nguyen
  • 13. Advanced Operating System – Fall 2012 • Spinning vs. Switching › Scheduling critical section may be held › if critical sections are short spinning may be better than blocking › static analysis of critical section duration can determine whether to spin or block › dynamic analysis can improve performance Van Hoang Nguyen
  • 14. Advanced Operating System – Fall 2012 • Single processor scheduling › Which thread should be run next? ---- Time Sharing •Multiprocessor scheduling › Which thread should be run next? --- Time Sharing › Which CPU to run it on? --- Space Sharing Van Hoang Nguyen
  • 15. Advanced Operating System – Fall 2012 • Time sharing approach • Space sharing approach Van Hoang Nguyen
  • 16. Advanced Operating System – Fall 2012 • Time sharing approach Van Hoang Nguyen
  • 17. Advanced Operating System – Fall 2012 • Message passing performance Van Hoang Nguyen
  • 18. Advanced Operating System – Fall 2012 • Message passing performance Van Hoang Nguyen
  • 19. Advanced Operating System – Fall 2012 • Message passing performance Sacrifice protection for performance Van Hoang Nguyen
  • 20. Advanced Operating System – Fall 2012 • Programming model Van Hoang Nguyen
  • 21. Advanced Operating System – Fall 2012 • Programming model Van Hoang Nguyen
  • 22. Advanced Operating System – Fall 2012 • Programming model › Send with copy › User-level interrupt › Copy on write Van Hoang Nguyen
  • 23. Advanced Operating System – Fall 2012 • Programming model › False sharing › Consistency Van Hoang Nguyen
  • 24. Advanced Operating System – Fall 2012 • Multiprocessor • Multicomputer Van Hoang Nguyen
  • 25. Advanced Operating System – Fall 2012 • Processor allocation Algorithms’ characteristics Van Hoang Nguyen
  • 26. Advanced Operating System – Fall 2012 • A graph-theoretic deterministic algorithm Van Hoang Nguyen
  • 27. Advanced Operating System – Fall 2012 • Sender-initiated distributed heuristic algorithm Van Hoang Nguyen
  • 28. Advanced Operating System – Fall 2012 • Receiver-initiated distributed heuristic algorithm Van Hoang Nguyen
  • 29. Advanced Operating System – Fall 2012 Comparing multiprocessors, multicomputers, distributed systems Item Multiprocessor Multicomputer Distributed system Node configuration CPU CPU, RAM, IC Complete computer Node peripherals All shared Shared exc. May be Full set per node disk Location Same rack Same room Possibly world wide Inter-node Shared RAM Dedicated Traditional network communication interconnect Operating systems One, shared Multiple, same Possibly all different File systems One, shared One, shared Each node has own Administration One organization One organization Many organizations Van Hoang Nguyen
  • 30. Advanced Operating System – Fall 2012 Van Hoang Nguyen
  • 31. Advanced Operating System – Fall 2012 Van Hoang Nguyen