The Gateway to Computer Science Excellence
0 votes
If the value of a counting semaphore s = 4, then the maximum number of requests for the critical section before it blocks is _____________ ?

1.   0

2.   1

3.   2

4.   4
in Operating System by (249 points) | 175 views

3 Answers

+1 vote
4 request for cs can be granted
by Junior (807 points)
+1 vote
Ans is 4

since the counting semaphore will decrease the count for every requesting process until it gets to 0...afterwards it will block the next requesting processes.
by (257 points)
+1 vote
you can apply 4 successful down operation on this semaphore. The next down opeartion will be unsuccessful and the process will get blocked.
by (133 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,601 answers
102,220 users