This topic contains 0 replies, has 0 voices, and was last updated by  EduGorilla 2 years, 3 months ago.

  • Author
  • #572976 Reply
    Select Question Language :

    Consider following code

    wait (s) : while not (s > 0) do keep testing s : s – 1 Signal(s) : s = s + 1 if value of s is – 2. And a process P executes first instruction, then which of the following is true?

    Options :-

    1. P will be granted to enter critical state
    2. P will not be able to enter critical state and terminate
    3. P will execute first instruction and terminate
    4. P will keep testing until variable s becomes greater than zero
    5. None of the above
    Post your Training /Course Enquiry
    Are You looking institutes / coaching center for
    • Bank PO, SSC, Railways
    • Study Abroad
    Select your Training / Study category
Reply To: Consider following codewait (s) : while not (s > 0) do keep testing s : s – 1 Signal(s….
Your information:

Verify Yourself

Log in with your credentials


Forgot your details?

Create Account