0 votes 0 votes How 4th statement is true??? Deepalitrapti asked Jun 14, 2019 Deepalitrapti 393 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply shaktisingh commented Jun 15, 2019 reply Follow Share This D statement is true because: firstly, we know if a binary Semaphore = 0 then, the process is blocked and not allowed to enter CS(critical section ) and the process is put to sleep. In signal function two conditions happen: 1. if queue = empty then, set S = 1 2.else queue = not empty then, the process is chosen from the queue and wake up to execute. from this, it concludes that when a queue is not empty it means S = 0 because we are waking up the process which is in sleep state and a process goes to sleep state when S = 0 0 votes 0 votes Deepalitrapti commented Jun 15, 2019 reply Follow Share I know this concept i think i m confuse See when s=1 if we perform down operations then s=0 but there is no process in the suspend list and list is empty but again we perform down operation then process go into the suspend list 0 votes 0 votes shaktisingh commented Jun 15, 2019 i edited by shaktisingh Jun 15, 2019 reply Follow Share @Deepalitrapti i think this may help you 0 votes 0 votes Deepak Poonia commented Jun 19, 2019 reply Follow Share If you can see that 3rd statement is True then 4th statement is nothing but Contrapositive version of 3rd statement. Hence, 3rd is True if and only if 4th is True because both statements are equivalent. 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes D is true. Note that it's a binary semaphore. So it's value can be 0 or 1. 1 will indicate no one is waiting in queue. 0 indicates 1 or more process waiting in queue smsubham answered Mar 19, 2020 smsubham comment Share Follow See all 0 reply Please log in or register to add a comment.