Gate CS-2015-3 Question Paper With Solutions

Q. 21 Two processes X and Y need to access a critical section. Consider the following
synchronization construct used by both the processes
Gate CS-2015-3 Question Paper With Solutions
Here, varP and varQ are shared varibles and both are initialized to false. Which
one of the following statements is true?

(A) The proposed solution prevents deadlock but fails to guarantee mutual
exclusion

(B) The proposed solution guarantees mutual exclusion but fails to prevent
deadlock

(C) The proposed solution guarantees mutual exclusion and prevents deadlock

(D) The proposed solution fails to prevent deadlock and fails to guarantee mutual
exclusion

Answer: (A)

Explanation:

Gate CS-2015-3 Question Paper With Solutions

Learn More:   Gate CS-2013 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here