OS · Synchronization interview questions

48 OS · Synchronization questions from the Computer Science Fundamentals bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Sign up free to see every answer with its explanation and ask the AI tutor.

Practice OS · Synchronization free

1. What is Race condition?

Junior
  1. A.a software algorithm using a turn variable and flags to enforce mutual exclusion for two processes
  2. B.an operation that completes entirely without any possibility of interruption midway
  3. C.a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data
  4. D.an integer synchronization variable accessed only through atomic wait and signal operations

Answer + AI explanation with a free account

2. Which term means: "a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data"?

Junior
  1. A.Monitor
  2. B.Busy waiting
  3. C.Mutual exclusion
  4. D.Race condition

Answer + AI explanation with a free account

3. Which statement is correct?

Junior
  1. A.Race condition — a hazard where a high-priority task waits on a lock held by a preempted lower-priority task
  2. B.Race condition — a software algorithm using a turn variable and flags to enforce mutual exclusion for two processes
  3. C.Race condition — a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data
  4. D.Race condition — an integer synchronization variable accessed only through atomic wait and signal operations

Answer + AI explanation with a free account

4. What is Critical section?

Junior
  1. A.the requirement that only one process be inside the critical section at any moment
  2. B.a classic synchronization scenario coordinating processes that fill and empty a bounded buffer
  3. C.a code region accessing shared data that at most one process may execute at a time
  4. D.a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data

Answer + AI explanation with a free account

5. Which term means: "a code region accessing shared data that at most one process may execute at a time"?

Junior
  1. A.Busy waiting
  2. B.Critical section
  3. C.Monitor
  4. D.Atomic operation

Answer + AI explanation with a free account

6. Which statement is correct?

Junior
  1. A.Critical section — a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data
  2. B.Critical section — repeatedly checking a condition in a loop, wasting CPU cycles while waiting to enter a section
  3. C.Critical section — a code region accessing shared data that at most one process may execute at a time
  4. D.Critical section — a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data

Answer + AI explanation with a free account

7. What is Mutual exclusion?

Junior
  1. A.an operation that completes entirely without any possibility of interruption midway
  2. B.an integer synchronization variable accessed only through atomic wait and signal operations
  3. C.the requirement that only one process be inside the critical section at any moment
  4. D.a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data

Answer + AI explanation with a free account

8. Which term means: "the requirement that only one process be inside the critical section at any moment"?

Junior
  1. A.Producer-consumer problem
  2. B.Mutex
  3. C.Race condition
  4. D.Mutual exclusion

Answer + AI explanation with a free account

9. Which statement is correct?

Junior
  1. A.Mutual exclusion — a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data
  2. B.Mutual exclusion — a lock allowing only the thread that locked it to unlock it, ensuring exclusive access
  3. C.Mutual exclusion — the requirement that only one process be inside the critical section at any moment
  4. D.Mutual exclusion — an integer synchronization variable accessed only through atomic wait and signal operations

Answer + AI explanation with a free account

10. What is Mutex?

Junior
  1. A.a semaphore restricted to values 0 and 1, behaving like a simple lock
  2. B.the requirement that only one process be inside the critical section at any moment
  3. C.a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data
  4. D.a lock allowing only the thread that locked it to unlock it, ensuring exclusive access

Answer + AI explanation with a free account

11. Which term means: "a lock allowing only the thread that locked it to unlock it, ensuring exclusive access"?

Junior
  1. A.Mutual exclusion
  2. B.Mutex
  3. C.Spinlock
  4. D.Monitor

Answer + AI explanation with a free account

12. Which statement is correct?

Junior
  1. A.Mutex — a classic problem illustrating deadlock and starvation among processes competing for shared forks
  2. B.Mutex — a lock allowing only the thread that locked it to unlock it, ensuring exclusive access
  3. C.Mutex — a software algorithm using a turn variable and flags to enforce mutual exclusion for two processes
  4. D.Mutex — a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data

Answer + AI explanation with a free account

13. What is Semaphore?

Mid
  1. A.an integer synchronization variable accessed only through atomic wait and signal operations
  2. B.a semaphore restricted to values 0 and 1, behaving like a simple lock
  3. C.the requirement that only one process be inside the critical section at any moment
  4. D.a hazard where a high-priority task waits on a lock held by a preempted lower-priority task

Answer + AI explanation with a free account

14. Which term means: "an integer synchronization variable accessed only through atomic wait and signal operations"?

Mid
  1. A.Semaphore
  2. B.Binary semaphore
  3. C.Mutex
  4. D.Race condition

Answer + AI explanation with a free account

15. Which statement is correct?

Mid
  1. A.Semaphore — a code region accessing shared data that at most one process may execute at a time
  2. B.Semaphore — a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data
  3. C.Semaphore — a semaphore that can take any non-negative value to manage a pool of identical resources
  4. D.Semaphore — an integer synchronization variable accessed only through atomic wait and signal operations

Answer + AI explanation with a free account

16. What is Binary semaphore?

Mid
  1. A.a semaphore that can take any non-negative value to manage a pool of identical resources
  2. B.an integer synchronization variable accessed only through atomic wait and signal operations
  3. C.a classic synchronization scenario coordinating processes that fill and empty a bounded buffer
  4. D.a semaphore restricted to values 0 and 1, behaving like a simple lock

Answer + AI explanation with a free account

17. Which term means: "a semaphore restricted to values 0 and 1, behaving like a simple lock"?

Mid
  1. A.Producer-consumer problem
  2. B.Race condition
  3. C.Binary semaphore
  4. D.Mutual exclusion

Answer + AI explanation with a free account

18. Which statement is correct?

Mid
  1. A.Binary semaphore — a semaphore that can take any non-negative value to manage a pool of identical resources
  2. B.Binary semaphore — a semaphore restricted to values 0 and 1, behaving like a simple lock
  3. C.Binary semaphore — an operation that completes entirely without any possibility of interruption midway
  4. D.Binary semaphore — a flaw where the result depends on the unpredictable timing of concurrent accesses to shared data

Answer + AI explanation with a free account

19. What is Counting semaphore?

Mid
  1. A.a semaphore restricted to values 0 and 1, behaving like a simple lock
  2. B.a lock allowing only the thread that locked it to unlock it, ensuring exclusive access
  3. C.a semaphore that can take any non-negative value to manage a pool of identical resources
  4. D.a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data

Answer + AI explanation with a free account

20. Which term means: "a semaphore that can take any non-negative value to manage a pool of identical resources"?

Mid
  1. A.Counting semaphore
  2. B.Spinlock
  3. C.Mutex
  4. D.Critical section

Answer + AI explanation with a free account

21. Which statement is correct?

Mid
  1. A.Counting semaphore — a hazard where a high-priority task waits on a lock held by a preempted lower-priority task
  2. B.Counting semaphore — a semaphore that can take any non-negative value to manage a pool of identical resources
  3. C.Counting semaphore — a classic synchronization scenario coordinating processes that fill and empty a bounded buffer
  4. D.Counting semaphore — an operation that completes entirely without any possibility of interruption midway

Answer + AI explanation with a free account

22. What is Peterson's solution?

Senior
  1. A.a hazard where a high-priority task waits on a lock held by a preempted lower-priority task
  2. B.an operation that completes entirely without any possibility of interruption midway
  3. C.a classic problem illustrating deadlock and starvation among processes competing for shared forks
  4. D.a software algorithm using a turn variable and flags to enforce mutual exclusion for two processes

Answer + AI explanation with a free account

23. Which term means: "a software algorithm using a turn variable and flags to enforce mutual exclusion for two processes"?

Senior
  1. A.Spinlock
  2. B.Monitor
  3. C.Peterson's solution
  4. D.Binary semaphore

Answer + AI explanation with a free account

24. Which statement is correct?

Senior
  1. A.Peterson's solution — a classic problem illustrating deadlock and starvation among processes competing for shared forks
  2. B.Peterson's solution — a software algorithm using a turn variable and flags to enforce mutual exclusion for two processes
  3. C.Peterson's solution — a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data
  4. D.Peterson's solution — a semaphore that can take any non-negative value to manage a pool of identical resources

Answer + AI explanation with a free account

25. What is Monitor?

Mid
  1. A.a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data
  2. B.a lock that makes a waiting thread busy-wait in a loop instead of blocking and sleeping
  3. C.a high-level construct bundling shared data with procedures that guarantee mutual exclusion automatically
  4. D.an operation that completes entirely without any possibility of interruption midway

Answer + AI explanation with a free account

26. Which term means: "a high-level construct bundling shared data with procedures that guarantee mutual exclusion automatically"?

Mid
  1. A.Monitor
  2. B.Priority inversion
  3. C.Spinlock
  4. D.Producer-consumer problem

Answer + AI explanation with a free account

27. Which statement is correct?

Mid
  1. A.Monitor — repeatedly checking a condition in a loop, wasting CPU cycles while waiting to enter a section
  2. B.Monitor — a synchronization problem allowing many concurrent readers but only one exclusive writer of shared data
  3. C.Monitor — a high-level construct bundling shared data with procedures that guarantee mutual exclusion automatically
  4. D.Monitor — a software algorithm using a turn variable and flags to enforce mutual exclusion for two processes

Answer + AI explanation with a free account

28. What is Busy waiting?

Mid
  1. A.a semaphore that can take any non-negative value to manage a pool of identical resources
  2. B.a high-level construct bundling shared data with procedures that guarantee mutual exclusion automatically
  3. C.repeatedly checking a condition in a loop, wasting CPU cycles while waiting to enter a section
  4. D.a lock that makes a waiting thread busy-wait in a loop instead of blocking and sleeping

Answer + AI explanation with a free account

29. Which term means: "repeatedly checking a condition in a loop, wasting CPU cycles while waiting to enter a section"?

Mid
  1. A.Priority inversion
  2. B.Busy waiting
  3. C.Readers-writers problem
  4. D.Spinlock

Answer + AI explanation with a free account

30. Which statement is correct?

Mid
  1. A.Busy waiting — a code region accessing shared data that at most one process may execute at a time
  2. B.Busy waiting — an operation that completes entirely without any possibility of interruption midway
  3. C.Busy waiting — the requirement that only one process be inside the critical section at any moment
  4. D.Busy waiting — repeatedly checking a condition in a loop, wasting CPU cycles while waiting to enter a section

Answer + AI explanation with a free account

Showing 30 of 48 OS · Synchronization questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Answers, AI explanations, and a free readiness check

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.

Practice OS · Synchronization free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers