retagged by
275 views
0 votes
0 votes

$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 __________.

  1. Thrashing                           
  2. Progress
  3. Starvation, but not deadlock.
  4. Deadlock
retagged by

1 Answer

Best answer
1 votes
1 votes
Deadlock occurs, if each each process gets preempted after executing $wait(A[i]);$
selected by
Answer:

Related questions

1 votes
1 votes
1 answer
3
Bikram asked May 14, 2017
435 views
What is the technique that allows one to execute a program which is not entirely in memory called?Demand PagingAuxiliary MemorySecondary MemoryVirtual Memory