Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 167
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
Correct Answer: A
Chapter: 167
Q3682:
Who creates the semaphore in the semaphore throttling technique?
A. Worker thread
B. Mutex
C. Processor
D. Boss thread
Correct Answer: D
Chapter: 167
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
Correct Answer: A
Chapter: 167
Q3684:
After exiting the critical section, the worker thread must ______ the semaphore.
A. hold
B. release
C. ignore
D. wait
Correct Answer: B
Chapter: 167
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
Correct Answer: C
Chapter: 167
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
Correct Answer: B
Chapter: 167
Q3687:
The maximum count for a semaphore in this technique is set ________.
A. initially
B. dynamically
C. manually
D. never
Correct Answer: A
Chapter: 167
Q3688:
The boss thread can adjust the semaphore count based on ________.
A. thread priority
B. overall progress
C. memory usage
D. thread speed
Correct Answer: B
Chapter: 167
Q3689:
If a specific worker thread is expensive, it can be made to ______ longer.
A. wait
B. process
C. finish
D. restart
Correct Answer: A
Chapter: 167
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
Correct Answer: C
Chapter: 167
Q3691:
Semaphore throttling can be used to reduce contention on which other resources?
A. Files and memory
B. Network bandwidth
C. Processor cache
D. Power supply
Correct Answer: A
Chapter: 167
Q3692:
This semaphore throttling technique should be used with caution on Windows ________ due to new optimization techniques.
A. NT6 and later
B. NT4
C. Windows 7
D. Windows XP
Correct Answer: A
Chapter: 167
Q3693:
Semaphore throttling involves using which synchronization mechanisms?
A. Critical Section and Mutex
B. Spinlocks
C. Atomic variables
D. Condition variables
Correct Answer: A
Chapter: 167
Q3694:
Semaphore throttling serializes thread execution to avoid ________.
A. thread creation
B. thread deadlock
C. mutex contention
D. mutex starvation
Correct Answer: C
Chapter: 167
Q3695:
The boss thread controlling semaphore count is an example of ________ management.
A. dynamic
B. resource
C. thread
D. process
Correct Answer: B
Chapter: 167
Q3696:
Using semaphore throttling improves performance by limiting the number of threads entering the ________.
A. critical section
B. processor
C. cache
D. memory
Correct Answer: B
Chapter: 167
Q3697:
Semaphore throttling applies to which areas besides threads?
A. files and memory
B. network and I/O
C. caches and buffers
D. user interface
Correct Answer: A
Chapter: 167
Q3698:
A semaphore count set to 4 means that a maximum of ______ threads can enter the critical section simultaneously.
A. 2
B. 4
C. 8
D. 1
Correct Answer: B
Chapter: 167
Q3699:
Which of the following is true about the worker thread in semaphore throttling?
A. It must wait on semaphore before critical section
B. It ignores semaphore count
C. It can enter critical section without restrictions
D. It does not release semaphore after critical section
Correct Answer: A
Chapter: 167
Q3700:
Semaphore throttling technique is simple and can be incorporated into ________ programs.
A. existing
B. new
C. limited
D. multithreaded
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now