Question 8460 – CIL Part – B
May 4, 2024
Question 3844 – Computer-Networks
May 5, 2024
Question 8460 – CIL Part – B
May 4, 2024
Question 3844 – Computer-Networks
May 5, 2024

Question 10475 – Semaphores

At a particular time of computation the value of a counting semaphore is 7. Then 20 P operations and 15 V operations were completed on this semaphore. The resulting value of the semaphore is:

Correct Answer: B

Question 4 Explanation: 
Let the semaphore be S.
Initial value of S is 7.
So after 20P operations and 15V operations the value of semaphore S will be,
S = 7 – 20 + 15 = 2
A
42
B
2
C
7
D
12
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!