$A\left [ 0 \right ] \dots A\left [ 4 \right ]$ is an array of mutexes (binary semaphores) and $B\left [ 0 \right ] \dots B\left [ 4 \right ]$ is an array of processes.
If each process $B\left [ i \right ]$ executes the following code:
wait (A[i]);
wait (A[(i+1) mod4]);
.........
..........
release (A[i]);
release (A[(i+1)mod4]);
This could result in __________.
- Thrashing
- Progress
- Starvation, but not deadlock.
- Deadlock