Homework
There are 4 processes in the system: A, B, C, D.
The system has to allow operation in each of the following 3 cases and only in them.
The other process in a pair can join even if its buddy is already operating.
All semaphores are initialized to 1
Process A Process B Process C Process D
repeat repeat repeat repeat
wait(x); wait(y); wait(z); wait(w);
wait(y); wait(z); wait(w); wait(x);
operate operate operate operate
signal (y); signal(z); signal(w); signal(x);
signal(x); signal(y); signal(z); signal(w);
forever forever forever forever