OS · Synchronization interview questions

48 real OS · Synchronization questions from the Computer Science Fundamentals bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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 scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice OS · Synchronization free