SlideShare a Scribd company logo
บทที่  7 Classic Synchronization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
เบื้องหลัง  Background ,[object Object],[object Object],[object Object]
การแก้ไขปัญหาส่วนงานวิกฤต  Solution to Critical-Section Problem ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithm 1 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithm 2 ,[object Object],[object Object],[object Object],[object Object]
Algorithm 3 ,[object Object],[object Object],[object Object],[object Object]
การทำงานเชิงสัมพันธ์ของฮาร์ดแวร์  Synchronization Hardware ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ระบบอาณัติสัญญาณ  Semaphore ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
อาณัติสัญญาณโดยเครื่องมือเพื่อการทำงานเชิงสัมพันธ์แบบทั่วไป  Semaphore as General Synchronization Tool ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
การใช้งานอาณัติสัญญาณ  Semaphore Implementation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ในที่นี้จะไม่กล่าวถึงประสิทธิภาพ  Deadlock and Starvation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ปัญหาพื้นฐานของการทำงานเชิงสัมพันธ์  Classical Problems of Synchronization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ปัญหาดินนิ่งไฟโลโซเฟอร์  Dining-Philosophers Problem ,[object Object],[object Object]
การเฝ้าติดตาม  Monitors ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ตัวแปรแบบมีเงื่อนไข   Condition Variables ,[object Object],[object Object]
Monitor with condition variables

More Related Content

What's hot

10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)
10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)
10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)krissapat
 
Ch08th
Ch08thCh08th
Operating System Chapter 1
Operating System Chapter 1Operating System Chapter 1
Operating System Chapter 1
Nuth Otanasap
 
8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)
8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)
8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)krissapat
 
แนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Os
แนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Osแนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Os
แนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Os
Champ Phinning
 
Operating System Chapter 3
Operating System Chapter 3Operating System Chapter 3
Operating System Chapter 3
Nuth Otanasap
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
Anil Kumar Pugalia
 
VIRTUAL MEMORY
VIRTUAL MEMORYVIRTUAL MEMORY
VIRTUAL MEMORY
Kamran Ashraf
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44
myrajendra
 
Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03
BarrBoy
 
NAS Concepts
NAS ConceptsNAS Concepts
NAS Concepts
Ramkaliyaperumal
 
ความหมายของโปรแกรมคอมพิวเตอร์
ความหมายของโปรแกรมคอมพิวเตอร์ความหมายของโปรแกรมคอมพิวเตอร์
ความหมายของโปรแกรมคอมพิวเตอร์tugkrung
 
Memory Management
Memory ManagementMemory Management
Memory Management
DEDE IRYAWAN
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
rapunzel08
 
CPU Scheduling
CPU  SchedulingCPU  Scheduling
CPU Scheduling
Hi Nana
 
virtual memory
virtual memoryvirtual memory
virtual memory
surbhisinghal90
 
3 ca-computer system structure
3 ca-computer system structure3 ca-computer system structure
3 ca-computer system structurekrissapat
 
แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52
แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52
แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52rdschool
 
Sci31101 rain
Sci31101 rainSci31101 rain
Sci31101 rain
Taweesak Poochai
 
Chapter 7 - Deadlocks
Chapter 7 - DeadlocksChapter 7 - Deadlocks
Chapter 7 - Deadlocks
Wayne Jones Jnr
 

What's hot (20)

10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)
10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)
10 ca-mass-storage system structure (wichet p.'s conflicted copy 2012-12-17)
 
Ch08th
Ch08thCh08th
Ch08th
 
Operating System Chapter 1
Operating System Chapter 1Operating System Chapter 1
Operating System Chapter 1
 
8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)
8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)
8 ca-file system implementation (wichet p.'s conflicted copy 2012-12-17)
 
แนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Os
แนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Osแนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Os
แนวข้อสอบระบบปฎิบัติการคอมพิวเตอร์ Os
 
Operating System Chapter 3
Operating System Chapter 3Operating System Chapter 3
Operating System Chapter 3
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
VIRTUAL MEMORY
VIRTUAL MEMORYVIRTUAL MEMORY
VIRTUAL MEMORY
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44
 
Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03
 
NAS Concepts
NAS ConceptsNAS Concepts
NAS Concepts
 
ความหมายของโปรแกรมคอมพิวเตอร์
ความหมายของโปรแกรมคอมพิวเตอร์ความหมายของโปรแกรมคอมพิวเตอร์
ความหมายของโปรแกรมคอมพิวเตอร์
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
CPU Scheduling
CPU  SchedulingCPU  Scheduling
CPU Scheduling
 
virtual memory
virtual memoryvirtual memory
virtual memory
 
3 ca-computer system structure
3 ca-computer system structure3 ca-computer system structure
3 ca-computer system structure
 
แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52
แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52
แบบฝึกหัด เรื่องโลก ดิน หิน น้ำ52
 
Sci31101 rain
Sci31101 rainSci31101 rain
Sci31101 rain
 
Chapter 7 - Deadlocks
Chapter 7 - DeadlocksChapter 7 - Deadlocks
Chapter 7 - Deadlocks
 

Viewers also liked

กองทุนท่าจีน
กองทุนท่าจีนกองทุนท่าจีน
กองทุนท่าจีน
Nuth Otanasap
 
4 ca-process structure
4 ca-process structure4 ca-process structure
4 ca-process structurekrissapat
 
Ec2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and socialEc2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and social
Nuth Otanasap
 
Ec2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerceEc2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerce
Nuth Otanasap
 
Ec2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systemsEc2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systems
Nuth Otanasap
 
2010 NZJEL Appreciative Inquiry In Action
2010 NZJEL Appreciative Inquiry In Action2010 NZJEL Appreciative Inquiry In Action
2010 NZJEL Appreciative Inquiry In Action
SmartNet
 
салтыков
салтыковсалтыков
салтыков
natacha0304
 
Paul Mueller_Resume
Paul Mueller_ResumePaul Mueller_Resume
Paul Mueller_Resume
Paul Mueller
 
PTA Resume
PTA ResumePTA Resume
PTA Resume
Brittany Mack
 
Almacenamiento de Gas Natural
Almacenamiento de Gas NaturalAlmacenamiento de Gas Natural
Almacenamiento de Gas Natural
Colegio Oficial de Geólogos
 
Elizabeth calleja cuadro
Elizabeth calleja cuadroElizabeth calleja cuadro
Elizabeth calleja cuadro
elizabeth2017
 
Bryly - projekt eukacyjny
Bryly - projekt eukacyjnyBryly - projekt eukacyjny
Bryly - projekt eukacyjny
Anna Wołoszyn
 
Final FaceView Mask Presentation
Final FaceView Mask PresentationFinal FaceView Mask Presentation
Final FaceView Mask Presentation
Alison Lillie
 
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
Matt Spradley
 
The State of Email and Marketing Automation in South-East Asia
The State of Email and Marketing Automation in South-East AsiaThe State of Email and Marketing Automation in South-East Asia
The State of Email and Marketing Automation in South-East Asia
Econsultancy
 
MA_RUIDO
MA_RUIDOMA_RUIDO
MA_RUIDO
Evelyn Sanchez
 

Viewers also liked (17)

กองทุนท่าจีน
กองทุนท่าจีนกองทุนท่าจีน
กองทุนท่าจีน
 
4 ca-process structure
4 ca-process structure4 ca-process structure
4 ca-process structure
 
Ec2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and socialEc2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and social
 
Ec2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerceEc2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerce
 
Ec2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systemsEc2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systems
 
Os ch02
Os ch02Os ch02
Os ch02
 
2010 NZJEL Appreciative Inquiry In Action
2010 NZJEL Appreciative Inquiry In Action2010 NZJEL Appreciative Inquiry In Action
2010 NZJEL Appreciative Inquiry In Action
 
салтыков
салтыковсалтыков
салтыков
 
Paul Mueller_Resume
Paul Mueller_ResumePaul Mueller_Resume
Paul Mueller_Resume
 
PTA Resume
PTA ResumePTA Resume
PTA Resume
 
Almacenamiento de Gas Natural
Almacenamiento de Gas NaturalAlmacenamiento de Gas Natural
Almacenamiento de Gas Natural
 
Elizabeth calleja cuadro
Elizabeth calleja cuadroElizabeth calleja cuadro
Elizabeth calleja cuadro
 
Bryly - projekt eukacyjny
Bryly - projekt eukacyjnyBryly - projekt eukacyjny
Bryly - projekt eukacyjny
 
Final FaceView Mask Presentation
Final FaceView Mask PresentationFinal FaceView Mask Presentation
Final FaceView Mask Presentation
 
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
How We Built a Mobile Electronic Health Record App Using Xamarin, Angular, an...
 
The State of Email and Marketing Automation in South-East Asia
The State of Email and Marketing Automation in South-East AsiaThe State of Email and Marketing Automation in South-East Asia
The State of Email and Marketing Automation in South-East Asia
 
MA_RUIDO
MA_RUIDOMA_RUIDO
MA_RUIDO
 

Similar to Ch07ath

Aa
AaAa
Lesson
LessonLesson
Lesson
krunuippk
 
Computer past 1
Computer past 1Computer past 1
Computer past 1krudeaw
 
777
777777
Computer past 1
Computer past 1Computer past 1
Computer past 1
krudeaw
 
Computer past 1
Computer past 1Computer past 1
Computer past 1krudeaw
 
Aa
AaAa
Word4 24
Word4 24Word4 24
ชุดที่ 2
ชุดที่ 2ชุดที่ 2
ชุดที่ 2
Cat Cattaleeya
 
Work4-24
Work4-24Work4-24
ผังงาน (Flowchart)
ผังงาน (Flowchart)ผังงาน (Flowchart)
ผังงาน (Flowchart)Theruangsit
 
แบบทดสอบ O-net
แบบทดสอบ O-net แบบทดสอบ O-net
แบบทดสอบ O-net
Saharat Yimpakdee
 
Com element [compatibility mode]
Com element [compatibility mode]Com element [compatibility mode]
Com element [compatibility mode]twatfangmin
 

Similar to Ch07ath (20)

11
1111
11
 
Pit
PitPit
Pit
 
Com
ComCom
Com
 
Aa
AaAa
Aa
 
Lesson
LessonLesson
Lesson
 
Computer past 1
Computer past 1Computer past 1
Computer past 1
 
Lesson
LessonLesson
Lesson
 
777
777777
777
 
Computer past 1
Computer past 1Computer past 1
Computer past 1
 
Computer past 1
Computer past 1Computer past 1
Computer past 1
 
Com
ComCom
Com
 
Aa
AaAa
Aa
 
Aa
AaAa
Aa
 
Word4 24
Word4 24Word4 24
Word4 24
 
Word4 24
Word4 24Word4 24
Word4 24
 
ชุดที่ 2
ชุดที่ 2ชุดที่ 2
ชุดที่ 2
 
Work4-24
Work4-24Work4-24
Work4-24
 
ผังงาน (Flowchart)
ผังงาน (Flowchart)ผังงาน (Flowchart)
ผังงาน (Flowchart)
 
แบบทดสอบ O-net
แบบทดสอบ O-net แบบทดสอบ O-net
แบบทดสอบ O-net
 
Com element [compatibility mode]
Com element [compatibility mode]Com element [compatibility mode]
Com element [compatibility mode]
 

More from Nuth Otanasap

มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้Nuth Otanasap
 
SA Chapter 14
SA Chapter 14SA Chapter 14
SA Chapter 14
Nuth Otanasap
 
SA Chapter 13
SA Chapter 13SA Chapter 13
SA Chapter 13
Nuth Otanasap
 
SA Chapter 12
SA Chapter 12SA Chapter 12
SA Chapter 12
Nuth Otanasap
 
SA Chapter 11
SA Chapter 11SA Chapter 11
SA Chapter 11
Nuth Otanasap
 
SA Chapter 10
SA Chapter 10SA Chapter 10
SA Chapter 10
Nuth Otanasap
 
SA Chapter 9
SA Chapter 9SA Chapter 9
SA Chapter 9
Nuth Otanasap
 
SA Chapter 8
SA Chapter 8SA Chapter 8
SA Chapter 8
Nuth Otanasap
 
SA Chapter 7
SA Chapter 7SA Chapter 7
SA Chapter 7
Nuth Otanasap
 
SA Chapter 6
SA Chapter 6SA Chapter 6
SA Chapter 6
Nuth Otanasap
 
SA Chapter 5
SA Chapter 5SA Chapter 5
SA Chapter 5
Nuth Otanasap
 
SA Chapter 4
SA Chapter 4SA Chapter 4
SA Chapter 4
Nuth Otanasap
 
SA Chapter 3
SA Chapter 3SA Chapter 3
SA Chapter 3
Nuth Otanasap
 
SA Chapter 2
SA Chapter 2SA Chapter 2
SA Chapter 2
Nuth Otanasap
 
Ec2009 ch14 creating and launching
Ec2009 ch14 creating and launchingEc2009 ch14 creating and launching
Ec2009 ch14 creating and launching
Nuth Otanasap
 
Ec2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategyEc2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategy
Nuth Otanasap
 
Ec2009 ch10 e commerce security
Ec2009 ch10 e commerce securityEc2009 ch10 e commerce security
Ec2009 ch10 e commerce security
Nuth Otanasap
 
Ec2009 ch09 auctions
Ec2009 ch09 auctionsEc2009 ch09 auctions
Ec2009 ch09 auctions
Nuth Otanasap
 
Ec2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computingEc2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computing
Nuth Otanasap
 
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Nuth Otanasap
 

More from Nuth Otanasap (20)

มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้
 
SA Chapter 14
SA Chapter 14SA Chapter 14
SA Chapter 14
 
SA Chapter 13
SA Chapter 13SA Chapter 13
SA Chapter 13
 
SA Chapter 12
SA Chapter 12SA Chapter 12
SA Chapter 12
 
SA Chapter 11
SA Chapter 11SA Chapter 11
SA Chapter 11
 
SA Chapter 10
SA Chapter 10SA Chapter 10
SA Chapter 10
 
SA Chapter 9
SA Chapter 9SA Chapter 9
SA Chapter 9
 
SA Chapter 8
SA Chapter 8SA Chapter 8
SA Chapter 8
 
SA Chapter 7
SA Chapter 7SA Chapter 7
SA Chapter 7
 
SA Chapter 6
SA Chapter 6SA Chapter 6
SA Chapter 6
 
SA Chapter 5
SA Chapter 5SA Chapter 5
SA Chapter 5
 
SA Chapter 4
SA Chapter 4SA Chapter 4
SA Chapter 4
 
SA Chapter 3
SA Chapter 3SA Chapter 3
SA Chapter 3
 
SA Chapter 2
SA Chapter 2SA Chapter 2
SA Chapter 2
 
Ec2009 ch14 creating and launching
Ec2009 ch14 creating and launchingEc2009 ch14 creating and launching
Ec2009 ch14 creating and launching
 
Ec2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategyEc2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategy
 
Ec2009 ch10 e commerce security
Ec2009 ch10 e commerce securityEc2009 ch10 e commerce security
Ec2009 ch10 e commerce security
 
Ec2009 ch09 auctions
Ec2009 ch09 auctionsEc2009 ch09 auctions
Ec2009 ch09 auctions
 
Ec2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computingEc2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computing
 
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
 

Ch07ath