in Operating System recategorized by
955 views
0 votes
0 votes

In a system, counting semaphore was initialized to $10$, then $6P$(wait) operations and $4V$ (signal) operations were completed on this semaphore. So _____ is the final value of the semaphore.

  1. $7$
  2. $8$
  3. $13$
  4. $12$
in Operating System recategorized by
by
955 views

1 Answer

1 vote
1 vote
Wait operation decreases the value of counting semaphore and signal operation increases the value so

final value of counting semaphore =10-6+4=8

Correct answer is B