0 votes 0 votes Original Question - https://gateoverflow.in/8405/gate2015-3-10 Answer is A) Yes, there's no ME (That's fine) Also there's no Deadlock, but for no deadlock, can we give reason as - There's no deadlock, because there's no circular wait as both processes X and Y are working on different sets of shared variables. X on varP and Y on VarQ. So, there's no dependency there. And hence No deadlock? Is this reasoning for deadlock valid? Operating System operating-system usermod users + – iarnav asked Aug 7, 2018 iarnav 888 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments iarnav commented Aug 8, 2018 reply Follow Share in Process X, you used the value of varQ and varP right? But the VarQ is just used in while loop for condition checking, the operations of wait and signal are only on process X? And yes, I totally agree with your answer about M.E and deadlock. Thankyou! 0 votes 0 votes Shaik Masthan commented Aug 8, 2018 reply Follow Share But the VarQ is just used in while loop for condition checking, the operations of wait and signal are only on process X? here while loop acts as wait(); if you didn't get this, think that depend upon varQ only Process X enters into CS, it uses varQ and varP. 1 votes 1 votes iarnav commented Aug 8, 2018 reply Follow Share Yes, makes sense, brother. Thank you! :) 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes ANSWER is B ,because when both the shared variables are True then the system will come in deadlock but it ensures the mutual exclusion. 1997_satya answered Aug 20, 2018 1997_satya comment Share Follow See all 0 reply Please log in or register to add a comment.