System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3681: What is the purpose of creating a semaphore with a small count in thread management?
- A: Limit threads entering critical section
- B: Increase thread creation
- C: Disable synchronization
- D: Reduce memory usage
View Answer
A
Q3682: Who creates the semaphore in the semaphore throttling technique?
- A: Worker thread
- B: Mutex
- C: Processor
- D: Boss thread
View Answer
D
Q3683: A worker thread must ________ before entering the critical section when using semaphore throttling.
- A: wait on the semaphore
- B: ignore the semaphore
- C: lock the processor
- D: restart the thread
View Answer
A
Q3684: After exiting the critical section, the worker thread must ______ the semaphore.
- A: hold
- B: release
- C: ignore
- D: wait
View Answer
B
Q3685: Semaphore throttling helps to minimize contention on which of the following?
- A: CPU cache
- B: Memory bus
- C: Critical section or Mutex
- D: Central registry
View Answer
C
Q3686: Thread execution is ______ among the few threads waiting on the mutex or critical section due to semaphore throttling.
- A: parallel
- B: serialized
- C: randomized
- D: delayed
View Answer
B
Q3687: The maximum count for a semaphore in this technique is set ________.
- A: initially
- B: dynamically
- C: manually
- D: never
View Answer
A
Q3688: The boss thread can adjust the semaphore count based on ________.
- A: thread priority
- B: overall progress
- C: memory usage
- D: thread speed
View Answer
B
Q3689: If a specific worker thread is expensive, it can be made to ______ longer.
- A: wait
- B: process
- C: finish
- D: restart
View Answer
A
Q3690: Semaphore throttling is especially useful for which versions of Windows?
- A: NT6 and later
- B: All versions
- C: Older versions
- D: Windows XP only
View Answer
C