1.

A multithreaded program P executes with x number of threads used y number of locks for ensuring mutual exclusion while operating on shared memory locations. All locks in the program are non-re-entrant. i.e. if a thread holds a lock l, then it cannot re-acquire lock l without releasing it. If a thread is unable to acquire a lock, it blocks until the lock becomes available. The minimum value of x and the minimum value of y together for which execution of p can result in a deadlock are:

A. x = 1, y = 2
B. x = 2, y k = 1
C. x = 2, y = 2
D. x = 1, y = 1
Answer» E.


Discussion

No Comment Found

Related MCQs