1,136 views

1 Answer

2 votes
2 votes
No it depends upon type of semaphore you are using .

If its binary then mutual exclusion is guarantee (Only1 process at a time in CS )

if its counting then mutual exclusion is not guarntee (multiple process be at a time in CS )

Related questions

1 votes
1 votes
1 answer
2
thor asked Sep 25, 2016
1,228 views
Can Mutual exclusion can be enforced with a general semaphore initial value is greater than 1 ?I think yes. Consider a semaphore $S = 2$, and following code segment for b...
0 votes
0 votes
1 answer
4
Mrityudoot asked Jan 27
230 views
Can a counting semaphore acquire a negative value?S = 2;15 P operations done, should the semaphore be 0 or -13