1 votes 1 votes A counting semaphore is initialized to $10$. The $6$ P(wait) operations and $4$ V(signal) operations were completed in this semaphore. The resulting value of semaphore is: $0$ $8$ $10$ $12$ Operating System tbb-os-2 + – Bikram asked Dec 26, 2016 • edited Aug 27, 2019 by go_editor Bikram 219 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 1 votes 1 votes In P operation semaphore value is reduced by 1. In V operation semaphore value is increased by 1 so the resulting value of semaphore is : Initial value - number of P + number of V = (10 - 6 )+ 4 = 8 Bikram answered Dec 26, 2016 • selected Aug 27, 2019 by Bikram Bikram comment Share Follow See all 0 reply Please log in or register to add a comment.