Correct Answer: A
Explanation:
Loading...
Correct Answer: A
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 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…
int x = 0; // global Lock L1; // global main() { create thread T1 to execute foo(); create t…
Each of a set of n processes executes the following code using two semaphores a and b initialized to…