System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3391: What happens if WaitForSingleObject(mBlock.mGuard, INFINITE) is called in the producer thread?
- A: Mutex is locked until released
- B: Mutex is created
- C: Event is set
- D: Thread is suspended
View Answer
A
Q3392: What happens when the producer sets fReady to 1?
- A: Message is marked ready to consume
- B: Mutex is released
- C: Event is signaled
- D: Checksum is calculated
View Answer
A
Q3393: The MSG_BLOCK's mData array stores:
- A: Message contents
- B: Mutex handles
- C: Event handles
- D: Thread IDs
View Answer
A
Q3394: Windows operating system kernel supports ________ to improve program design and performance.
- A: Multiprocessing
- B: Multithreading
- C: Single-threading
- D: None of the above
View Answer
B
Q3395: Process synchronization is used to coordinate processes that use ________.
- A: Separate data
- B: Shared data
- C: Independent memory
- D: Different threads
View Answer
B
Q3396: Which synchronization object is NOT listed as used for synchronizing access to resources in Windows?
- A: Critical Section
- B: Semaphore
- C: Barrier
- D: Event
View Answer
D
Q3397: A ________ is a synchronization object that allows only one thread to access a resource at a time.
- A: Mutex
- B: Event
- C: Critical Section
- D: Semaphore
View Answer
A
Q3398: Which synchronization object is typically used to signal one or more waiting threads that an event has occurred?
- A: Event
- B: Mutex
- C: Critical Section
- D: Semaphore
View Answer
A
Q3399: To coordinate access to shared data in a multithreaded program, one would use ________.
- A: Critical Section
- B: Event
- C: Mutex
- D: All of the above
View Answer
D
Q3400: The Windows OS supports synchronization objects to manage ________ in real-time applications.
- A: Thread creation
- B: Thread suspension
- C: Thread coordination
- D: Thread termination
View Answer
C