> anishgoyal


NotesOperating System Concepts Essentials (Silberschatz) Lecture 5

Process Synchronization

calendar_today   article 2986 words   access_time 16 min   replay Modified

Table of Contents

Background

Bounded Buffer

The Critical-Section Problem

Kernel Preemption

Peterson’s Solution

Synchronization Hardware

Mutex Locks

Semaphores

Semaphores, Usage

Semaphores, Implementation

Semaphores, Deadlocks and Starvation

The Classic Problems of Synchronization

Bounded Buffer Problem

Readers-Writers Problem

Dining Philosophers Problem

Monitors

Monitor Usage

Dining-Philosophers Solution Using Monitors

Implementing Monitors Using Semaphores

Resuming Processes Within a Monitor

Deadlocks

System Model

Deadlock Characterization

Resource-Allocation Graph

Methods for Handling Deadlocks


Practical Checklist for Your Code

References

Sources

Graph