Sweta Tiwari posted an Question
July 14, 2021 • 16:02 pm 30 points
  • UGC NET
  • Computer Science & Applications

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]

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) Answer Now
  • 0 Likes
  • 1 Comments
  • 0 Shares
whatsapp-btn

Do You Want Better RANK in Your Exam?

Start Your Preparations with Eduncle’s FREE Study Material

  • Updated Syllabus, Paper Pattern & Full Exam Details
  • Sample Theory of Most Important Topic
  • Model Test Paper with Detailed Solutions
  • Last 5 Years Question Papers & Answers