Skip to main content
GATE CSE

Semaphore PYQs (GATE CSE Operating System: Semaphore previous year questions)

The frequency analysis counts 10 GATE CSE questions on Semaphore between 1990–2026. 6 of them since 2016. See how it scores below, then practise Operating System previous year questions.

  • 10questions in the topic analysis
  • 1990–2026years it has appeared
  • very highhistorical value tier
  • 1practice question on Semaphore

About Semaphore

Frequency
0.25
Recurrence
1.00
Recentness
0.60
Solvability
1.00

Combined topic value score 63.8/100 — the same transparent four-part weighting used across the archive, not a hand-assigned priority. VERY HIGH

Difficulty mix
unknown6
easy2
normal2
Question type mix
MCQ7
MSQ2
NAT1
Other exam streams
GATE IT1

Practice Questions

These 1 question is previous year questions on Semaphore, checked and linked to this topic.

Question 1 of 1
GATE CSE 2022Operating SystemProcess Synchronization & Concurrency1 mark

Consider the following threads, T1,T2,\text{T}_{1}, \text{T}_{2}, and T3\text{T}_{3} executing on a single processor, synchronized using three binary semaphore variables, S1,S2,\text{S}_{1}, \text{S}_{2}, and S3,\text{S}_{3}, operated upon using standard wait()\textsf{wait}() and signal().\textsf{signal}(). The threads can be context switched in any order and at any time.

T1T2T3while(true){while(true){while(true){wait(S3);wait(S1);wait(S2);print(“C”);print(“B”);print(“A”);signal(S2);}signal(S3);}signal(S1);}\begin{array}{|c|c|c|} \hline \text{T}_{1} & \text{T}_{2} & \text{T}_{3} \\\hline \text{while(true)} \{ & \text{while(true)} \{& \text{while(true)} \{ \\ \text{wait(S}_{3}); & \text{wait(S}_{1}); & \text{wait(S}_{2}); \\ \text{print(“C”)}; & \text{print(“B”)}; & \text{print(“A”)}; \\ \text{signal(S}_{2}); \} & \text{signal(S}_{3}); \} & \text{signal(S}_{1}); \} \\\hline \end{array}

Which initialization of the semaphores would print the sequence BCABCABCA…?\text{BCABCABCA} \dots ?

Choose one option

Answer at least one question to submit.

Help us improve: tell us what to fix or add

Sign in to send feedback (it takes under a minute), or create a free account.