Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 172
Q3801:
What happens if there are more work objects than available threads in a thread pool?
A. Work objects compete for threads
B. Threads are duplicated
C. New threads are automatically created
D. Work objects are discarded
Correct Answer: A
Chapter: 172
Q3802:
The Windows kernel is responsible for
A. Resolving competition between work objects
B. Allocating memory to threads
C. Terminating processes
D. Creating new user threads
Correct Answer: A
Chapter: 172
Q3803:
A thread in a thread pool maps to
A. Callback function of a work object
B. CPU core
C. Memory block
D. Kernel object
Correct Answer: A
Chapter: 172
Q3804:
Thread pool threads execute
A. Asynchronous callbacks
B. Synchronous functions
C. Only hardware interrupts
D. User interface events
Correct Answer: A
Chapter: 172
Q3805:
The term "work object" in thread pools refers to
A. Tasks to be executed by threads
B. CPU cores
C. Memory pages
D. Kernel modules
Correct Answer: A
Chapter: 172
Q3806:
Limited threads in a thread pool can cause
A. Competition among work objects
B. Deadlocks in hardware
C. Memory leaks
D. Automatic thread termination
Correct Answer: A
Chapter: 172
Q3807:
The thread pool is useful for applications performing
A. wait on Kernel objects
B. Graphical rendering
C. Audio processing
D. User input handling
Correct Answer: A
Chapter: 172
Q3808:
A thread becomes free after
A. Completing execution of its callback function
B. Being paused by scheduler
C. Completing system call
D. Releasing memory
Correct Answer: A
Chapter: 172
Q3809:
Which of the following is true about process thread pools?
A. Each process has its own dedicated thread pool
B. All processes share a global thread pool
C. There are no thread pools in modern OS
D. Only system processes use thread pools
Correct Answer: A
Chapter: 172
Q3810:
In the context of thread pools, a callback function is executed by
A. Threads in the thread pool
B. The main application thread
C. User interface thread
D. Kernel interrupt handler
Correct Answer: A
Chapter: 172
Q3811:
If default threads in a thread pool are insufficient, the programmer may
A. Create more threads using CreateThreadPool()
B. Terminate existing threads
C. Create threads manually
D. Increase CPU frequency
Correct Answer: A
Chapter: 172
Q3812:
When a thread finishes its callback, it becomes
A. Available for other work
B. Destroyed
C. Paused
D. Converted to user thread
Correct Answer: A
Chapter: 173
Q3813:
Which function associates a work object to a callback function in a thread pool?
A. CreateThreadPoolWork()
B. CreateThreadpoolTimer()
C. CreateThreadpoolIO()
D. CreateThreadpoolWait()
Correct Answer: A
Chapter: 173
Q3814:
A callback function typically performs
A. Computations and I/O
B. Memory management
C. Thread scheduling
D. Network communication
Correct Answer: A
Chapter: 173
Q3815:
CreateThreadpoolTimer() executes a callback function
A. After a specified time interval
B. Only once at system startup
C. Only when I/O completes
D. Continuously without delay
Correct Answer: A
Chapter: 173
Q3816:
CreateThreadpoolTimer() callback intervals are specified
A. in milliseconds
B. in seconds
C. in microseconds
D. in minutes
Correct Answer: A
Chapter: 173
Q3817:
Which thread pool function registers a callback for overlapped I/O operation completion?
A. CreateThreadpoolIO()
B. CreateThreadPoolWork()
C. CreateThreadpoolTimer()
D. CreateThreadpoolWait()
Correct Answer: A
Chapter: 173
Q3818:
CreateThreadpoolWait() registers a callback function to execute
A. when a specified object is signaled
B. when a timer expires
C. when I/O operation completes
D. when a new thread is created
Correct Answer: A
Chapter: 173
Q3819:
The function used to specify the object for CreateThreadpoolWait() callback is called
A. SetThreadpoolWait()
B. CreateThreadpoolSet()
C. SetWaitObject()
D. RegisterThreadWait()
Correct Answer: A
Chapter: 173
Q3820:
CreateThreadpoolIO() callbacks execute
A. on I/O completion
B. On timer expiration
C. On thread creation
D. On thread termination
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now