0 votes 0 votes I don't think any of the options is right. What will be the answer? Operating System operating-system process-scheduling mutex virtual-gate-test-series + – Purple asked Jan 13, 2017 • edited Apr 14, 2019 by Lakshman Bhaiya Purple 628 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply santhoshdevulapally commented Jan 13, 2017 reply Follow Share what are the initial values of 's' and 'u' 0 votes 0 votes Prateek kumar commented Apr 24, 2017 reply Follow Share that's what i was looking for and in the comment also no one has mentioned 0 votes 0 votes Please log in or register to add a comment.
Best answer 0 votes 0 votes In process 3 V(s) is missing, If it is given then answer should be D. A,B,C can not be the answer, shayal chhabra answered Jan 13, 2017 • selected Jan 13, 2017 by Purple shayal chhabra comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Arnab Bhadra commented Apr 13, 2017 reply Follow Share In process there is no v(u). We can say that D will be printed only once as well as after that process 2 will never enter in its critical section. 0 votes 0 votes Yash4444 commented Jun 16, 2017 reply Follow Share if V(u) is no there in process 2 the output will be like CAB or CD 0 votes 0 votes Yash4444 commented Jun 16, 2017 reply Follow Share Yes initial values of s=1 and u=0 then only we will get option D as answer. 0 votes 0 votes Please log in or register to add a comment.