• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE CS 2010 | Question 45

The following program consists of 3 concurrent processes and 3 binary semaphores.The semaphores are initialized as S0 = 1, S1 = 0, S2 = 0. gatecs201042 How many times will process P0 print \'0\'?

(A)

At least twice

(B)

Exactly twice

(C)

Exactly thrice

(D)

Exactly once

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments