Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 3 MCQs Process Synchronization and Threads

CSE316 — Operating Systems 50 questions. Pick an option to check it.

Read the notes

0 of 50 answered 0 right 0 wrong , 50 left

  1. Question 1 of 50

    What is a 'Race Condition' in Operating Systems?

  2. Question 2 of 50

    Which of the following is NOT a requirement for a solution to the Critical Section Problem?

  3. Question 3 of 50

    What does 'Mutual Exclusion' imply in the context of the Critical Section Problem?

  4. Question 4 of 50

    What is a Semaphore?

  5. Question 5 of 50

    In a Semaphore, what does the 'wait' (or P) operation do?

  6. Question 6 of 50

    What is the main disadvantage of a Spinlock?

  7. Question 7 of 50

    A binary semaphore is also known as a:

  8. Question 8 of 50

    Which hardware instruction is commonly used to implement mutual exclusion?

  9. Question 9 of 50

    What is the 'Bounded Waiting' requirement?

  10. Question 10 of 50

    In the Producer-Consumer problem using a bounded buffer, when does the Producer wait?

  11. Question 11 of 50

    Which of the following is a high-level synchronization construct that ensures mutual exclusion automatically?

  12. Question 12 of 50

    In the Dining Philosophers problem, deadlock occurs if:

  13. Question 13 of 50

    What is Peterson's Solution used for?

  14. Question 14 of 50

    In Peterson's solution, which variables are shared between processes?

  15. Question 15 of 50

    What problem is the Readers-Writers problem primarily concerned with?

  16. Question 16 of 50

    What happens to threads that call 'wait' on a Condition Variable in a Monitor?

  17. Question 17 of 50

    Which of the following is NOT shared by threads of the same process?

  18. Question 18 of 50

    What is a Heavyweight Process compared to a Thread?

  19. Question 19 of 50

    Which multithreading model maps many user-level threads to a single kernel thread?

  20. Question 20 of 50

    What is a limitation of the Many-to-One multithreading model?

  21. Question 21 of 50

    Which multithreading model provides more concurrency than Many-to-One but doesn't require a kernel thread for every user thread?

  22. Question 22 of 50

    What is 'Scheduler Activation'?

  23. Question 23 of 50

    Which standard defines the API for thread creation and synchronization (Pthreads)?

  24. Question 24 of 50

    What is the function of pthread_join()?

  25. Question 25 of 50

    A Precedence Graph is a directed acyclic graph used to:

  26. Question 26 of 50

    What defines 'Co-operating Processes'?

  27. Question 27 of 50

    In the context of process hierarchy, what system call is typically used in Unix/Linux to create a new process?

  28. Question 28 of 50

    If a Semaphore S has a value of 10, and 5 P (wait) operations and 3 V (signal) operations are performed, what is the final value of S?

  29. Question 29 of 50

    What is the 'Bakery Algorithm' designed to solve?

  30. Question 30 of 50

    Which of the following is true regarding User-Level Threads (ULT)?

  31. Question 31 of 50

    In the One-to-One multithreading model, what is the main drawback?

  32. Question 32 of 50

    What is an 'Upcall' in the context of Scheduler Activations?

  33. Question 33 of 50

    Which synchronization primitive is typically used to solve the Reader-Writer problem to prevent writer starvation?

  34. Question 34 of 50

    What is 'Priority Inversion'?

  35. Question 35 of 50

    How does the 'Swap' hardware instruction assist in synchronization?

  36. Question 36 of 50

    In a Monitor, if process P executes x.signal() and process Q was waiting on x, and Q immediately executes while P waits, this strategy is called:

  37. Question 37 of 50

    Which component allows a thread to have its own copy of data?

  38. Question 38 of 50

    The problem where a producer tries to put an item into a full buffer is handled by:

  39. Question 39 of 50

    Why is disabling interrupts not a viable solution for mutual exclusion in multiprocessor systems?

  40. Question 40 of 50

    What is 'Busy Waiting'?

  41. Question 41 of 50

    Which of the following is a valid state for a Java thread?

  42. Question 42 of 50

    In the context of threads, what is 'cancellation'?

  43. Question 43 of 50

    Deferred cancellation of a thread means:

  44. Question 44 of 50

    A solution to the Dining Philosophers problem using a monitor restricts a philosopher to pick up chopsticks only if:

  45. Question 45 of 50

    Which type of semaphore can take any non-negative integer value?

  46. Question 46 of 50

    What defines a 'Thread Safe' function?

  47. Question 47 of 50

    In the 'Sleeping Barber' problem (a variation of producer-consumer), what happens if the customer arrives and the waiting room is full?

  48. Question 48 of 50

    What is the benefit of the 'Grand Central Dispatch' (GCD) technology in macOS/iOS?

  49. Question 49 of 50

    Concurrency vs Parallelism: Which statement is true?

  50. Question 50 of 50

    What is the primary purpose of a Condition Variable?

That's unit 3

Answer a few questions and your score shows up here.