Deadlock & Concurrency
Algorithms
Lock Variable
TSL Mechanism
Turn Variable
Binary Semaphore
Counting Semaphore
Peterson Solution
Producer & Consumer
Dining Philosopher
Banker's algorithm
Turn Variable
Entry Section
while (turn ! = I);
Critical Section
Exit Section
turn = J;
Process I
Process J
Entry Section
Crititcal section
Exit Section
Turn Variable value =