A multithreaded program \(P\) executes with \(x\) number of threads and uses…
GATE · 2017 · CS · Set 1 · Computer Science & IT
A multithreaded program executes with number of threads and uses number of locks for ensuring mutual exclusion while operating on shared memory locations. All locks in the program are non-reentrant, i.e., if a thread holds a lock , then it cannot re-acquire lock without releasing it. If a thread is unable to acquire a lock, it blocks until the lock becomes available. The minimum value of and the minimum value of together for which execution of can result in a deadlock are:
- A.
- B.
- C.
- D.
Attempted by 144 students.
Sign up free to check your answer
Sign up freeLoading lesson…