0 votes 0 votes A: B: while true do while true do { { wait(p); wait(p); wait(q); wait(q); x=x+1; y=y+1; y=y-1; x=x-1; signal(p); signal (q); signal(q); signal(p); } } Two processes A and B, Is bounded guaranteed , if yes then how ? Jibran asked Sep 15, 2018 Jibran 420 views answer comment Share Follow See all 9 Comments See all 9 9 Comments reply Show 6 previous comments Jibran commented Sep 15, 2018 reply Follow Share Is it necessary that after A will hit signal(p) and B wakes up, he will execute wait(p) and will make p=1 so that A again cant enter? 0 votes 0 votes Shaik Masthan commented Sep 15, 2018 reply Follow Share Is it necessary that after A will hit signal(p) and B wakes up yes. when A hit signal(p), it means if any blocked process in the queue of semaphore p , then should be take one of them in FIFO(by default) order. 0 votes 0 votes Jibran commented Sep 15, 2018 reply Follow Share Got your point shaik masthan thankyou 0 votes 0 votes Please log in or register to add a comment.