UGC-NET | UGC NET CS 2018 July – II | Question 51
At a particular time of computation, the value of a counting semaphore is 10. Then 12 P operations and “x” V operations were performed on this semaphore. If the final value of semaphore is 7, x will be:
(A) 8
(B) 9
(C) 10
(D) 11
Answer: (B)
Explanation: Intially the value of a counting semaphore is 10 Now 12 P operation are performed.
Now counting semaphore value = -2
“x” V operations were performed on this semaphore and final value of counting semaphore = 7
i.e x + (-2) = 7
x = 9.
So, option (C) is correct.
Quiz of this Question
Recommended Posts:
- UGC-NET | UGC NET CS 2018 July - II | Question 95
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 11
- UGC-NET | UGC NET CS 2016 Aug - III | Question 2
- UGC-NET | UGC NET CS 2016 Aug - III | Question 3
- UGC-NET | UGC NET CS 2016 Aug - III | Question 4
- UGC-NET | UGC NET CS 2016 Aug - III | Question 5
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 8
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 9
- UGC-NET | UGC-NET CS 2017 Nov - III | Question 10
- UGC-NET | UGC NET CS 2015 Jun - II | Question 28
- UGC-NET | UGC NET CS 2018 July - II | Question 47
- UGC-NET | UGC NET CS 2018 July - II | Question 48
- UGC-NET | UGC NET CS 2018 July - II | Question 49
- UGC-NET | UGC NET CS 2015 Jun - III | Question 17
- UGC-NET | UGC NET CS 2015 Jun - III | Question 16

