Monday, 1 April 2019

UGC NET Computer Science July 2018 - II Question 51

Question 51
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 :

Options:
  1. (1) 8
  2. (2) 9
  3. (3) 10
  4. (4) 11
Answer : (2) 9

Explanation Question 51

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

Final value of counting semaphore = 7
∴ ( “x” V operations + current counting semaphore value (-2) ) = 7
∴ x + (-2) = 7
∴ x = 7 + 2
∴ x = 9.

So, option (2) is correct answer.


PreviousNext
UGC NET CS 2018 July - II Question 50UGC NET CS 2018 July - II Question 52

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts