recategorized by
875 views

1 Answer

1 votes
1 votes
In case of 0 it blocks the calling process. It should be 1

Related questions

1.7k
views
1 answers
1 votes
Rahul_Rathod_ asked Dec 12, 2018
1,677 views
a) s1-wait(p) , s2-wait(q) , s3-wait(q) , s4-wait(p)b) s1-wait(p) , s2-wait(q) , s3-wait(p) , s4-wait(q)c) s1-wait(q) , s2-wait(p) , s3-wait(p) , s4-wait(q)d) none of above
2.7k
views
3 answers
5 votes
learncp asked Dec 19, 2015
2,694 views
these are the codes for down and up operations in a binary semaphore. The down operation's code seems to be correct, but I am having some doubt in the ... to sleep again.. Am I missing something, or is the above implementation incorrect ?
1.7k
views
1 answers
2 votes