Sweta tiwari Asked a Question
July 14, 2021 10:32 ampts 30 pts
Oues. Suppose there are two concurent process P and Q. Using binary semaphore S and T. The code for P & Q is shown below [GATE 2003] Process P Process Q while (1) { while (1) W print 0 print 1 e print 0 print 1 Z: X: Statements inserted at w, x, y, z Which will leads to 0011 0011 0011'? X PS) V(S) P(T) V(T) 1 V(T) P(T) VS) 1 W Y Z S T (A) (B) P(S) 0 (C) PS) VT) P(T) VS) 1 1 (D) P(S) V(T) PT) VT) 1 0 Ans. (B) The sequence of process should be P, Q, P, Q.. S 1 T 0
  • 1 Answer(s)
  • 0 Likes
  • 1 Comments
  • Shares
  • Komal bhati thankyou
    check the explanation. hope you got it..
    • cropped899812183345525174.jpg
    Likes(0) Reply(0)
Head Office :
MPA 44, 2nd floor, Rangbari Main Road,
Mahaveer Nagar II, Kota (Raj.) – 324005

Corporate Office:
212, F-1, 2nd Floor, Evershine Tower,
Amrapali Marg,
Vaishali Nagar, Jaipur (Raj.) – 302021

Mail: info@eduncle.com
All Rights Reserved © Eduncle.com