• recategorized by
1,451 views

1 Answer

1 1 vote
In case of 0 it blocks the calling process. It should be 1
Position:
Show:

Related questions

1 1 vote
1 1 answer
2.5k
2.5k views
Rahul_Rathod_ asked Dec 12, 2018
2,539 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...
5 5 votes
3 3 answers
3.8k
3.8k views
learncp asked Dec 19, 2015
3,814 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 UP's code.Suppose a...
2 2 votes
1 answers 1 answer
2.2k
2.2k views
LavTheRawkstar asked Nov 4, 2016
2,170 views
difference in following: [i] mutual exclusion [ii] critical section [iii] semaphore