Chapter 06
Chapter 06
Process Synchronization
Copyright © 2008
Introduction
• What is Process Synchronization?
• Race Conditions
• Critical Sections
• Control Synchronization and Indivisible Operations
• Synchronization Approaches
• Structure of Concurrent Systems
Race conditions
in cases 2 and 3
• Significance of counters:
– runread: Number of readers reading
– totread: Number of readers wishing to read or reading
– Similarly runwrite and totwrite
Operating Systems, by Dhananjay Dhamdhere Copyright © 2008 6.50
50
Implementation of Semaphores