Deadlock & Concurrency
Algorithms
Lock Variable
TSL Mechanism
Turn Variable
Binary Semaphore
Counting Semaphore
Peterson Solution
Producer & Consumer
Dining Philosopher
Banker's algorithm
Lock Variable
Entry Section
While (lock! = 0);
Critical Section
Lock = 1;
Exit Section
Lock =0;
Start
Entry Section
Test Lock
Set Lock
Crititcal section
Exit Section
Lock Value =
Process in Waiting Queue