1 votes 1 votes What happens if signal() is performed on a binary semaphore which is already set to 1. sem mutex = 1; signal(mutex) // cs Operating System process-synchronization + – Shiv Gaur asked Nov 30, 2018 Shiv Gaur 549 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply anjali007 commented Nov 30, 2018 reply Follow Share I guess until a wait is performed the signal wont get executed i.e u cant enter the cs.. 0 votes 0 votes Hemanth_13 commented Nov 30, 2018 reply Follow Share The above code snippet will let any process who is willing to enter critical section will be allowed into critical section i.e if all process are interested all of them can be in CS at a time 0 votes 0 votes Shiv Gaur commented Nov 30, 2018 reply Follow Share Means when signal is performed by a process before entering cs semaphore value would still be 1? 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes As it is binary semaphore ,its value remain 1 on signal() operation Every process that wants to enter into critical section always enters critical section. It's just like opening a lock which is already opened. tharunbubbly answered Dec 1, 2018 tharunbubbly comment Share Follow See all 0 reply Please log in or register to add a comment.