3 votes 3 votes 2. Assume that ‘C’ is a Counting Semaphore initialized to value ‘10’. Consider the following program segment: P(C); V(C); P(C); P(C); P(C); V(C); V(C) V(C); V(C); V(C); P(C); V(C); V(C); P(C) What is the value of C? a) 8 b)10 c)12 d)14 Operating System semaphore process-synchronization operating-system + – ashutoshaay26 asked Sep 3, 2017 ashutoshaay26 4.7k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes C=10 there are 6 wait and 8 signal operation wait operation reduce count by 1 and signal increase count by 1 in general so 10-6+8=12 Tesla! answered Sep 3, 2017 selected Sep 4, 2017 by ashutoshaay26 Tesla! comment Share Follow See all 0 reply Please log in or register to add a comment.