More Synchronization

1/26/99


Click here to start


Table of Contents

More Synchronization

Readers/Writers

A Simple Solution

Discussion

A Better Reader Writer Solution

A Reader/Writer

Synchronization: Monitors

Synchronization with Semaphores

Monitors

A Monitor

Monitor Facilities

Condition Variables

Basic Monitor Structure

Basic Ideas

Monitors Have Several Associated Queues

Bounded Buffer Monitor Example

Monitors and Semaphores

Monitors implemented with Semaphores

Two kinds of Monitors

Examples

In Summary...

Mutex Example

Deadlock

DeadLock

Deadlock. You’re Stuck.

Resource Allocation Graph

PPT Slide

Four Conditions for Deadlock

Dealing with Deadlock

Possible Approaches

Why does ordering work?

Deadlock Avoidance

Possible Approaches

PPT Slide

PPT Slide

PPT Slide

PPT Slide

Deadlock Detection

Deadlock Detection Algorithm

Deadlock

Deadlock Recovery

Author: Brian Bershad

Email: bershad@cs.washington.edu

Home Page: http://www.cs.washington.edu/homes/bershad/