Correct Answer: A,B
Explanation:
Loading...
Correct Answer: A,B
Explanation:
Take your GATE-CS preparation to the next level. Practice with full-length mock tests, get instant results, and track your progress with detailed analytics.
Browse GATE-CS Test SeriesConsider three processes P1, P2, and P3 running identical code. A and B are binary semaphores initia…
Consider the following two threads T1 and T2 updating shared variables a and b. Initially a = b = 1.…
Consider a multi-threaded program with two threads T1 and T2 sharing semaphores s1 (initialized to 1…
Two functions incr and decr both use semaphore s. incr does wait(s), X=X+1, signal(s). decr does wai…
Three threads T1, T2, T3 use binary semaphores S1, S2, S3. T1: wait(S3), print C, signal(S2). T2: wa…
Each of a set of n processes executes the following code using two semaphores a and b initialized to…