0 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 1.3k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply santhoshdevulapally commented Jan 13, 2017 reply Follow flag what are the initial values of 's' and 'u' 0 0 replyShare Prateek kumar commented Apr 24, 2017 reply Follow flag that's what i was looking for and in the comment also no one has mentioned 0 0 replyShare Please log in or register to add a comment.
Best answer 0 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 5 5 Comments reply Show 2 previous comments Arnab Bhadra commented Apr 13, 2017 reply Follow flag 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 0 replyShare Yash4444 commented Jun 16, 2017 reply Follow flag if V(u) is no there in process 2 the output will be like CAB or CD 0 0 replyShare Yash4444 commented Jun 16, 2017 reply Follow flag Yes initial values of s=1 and u=0 then only we will get option D as answer. 0 0 replyShare Please log in or register to add a comment.