System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
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
View Answer
A
Q3812: When a thread finishes its callback, it becomes
- A: Available for other work
- B: Destroyed
- C: Paused
- D: Converted to user thread
View Answer
A
Q3813: Which function associates a work object to a callback function in a thread pool?
- A: CreateThreadPoolWork()
- B: CreateThreadpoolTimer()
- C: CreateThreadpoolIO()
- D: CreateThreadpoolWait()
View Answer
A
Q3814: A callback function typically performs
- A: Computations and I/O
- B: Memory management
- C: Thread scheduling
- D: Network communication
View Answer
A
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
View Answer
A
Q3816: CreateThreadpoolTimer() callback intervals are specified
- A: in milliseconds
- B: in seconds
- C: in microseconds
- D: in minutes
View Answer
A
Q3817: Which thread pool function registers a callback for overlapped I/O operation completion?
- A: CreateThreadpoolIO()
- B: CreateThreadPoolWork()
- C: CreateThreadpoolTimer()
- D: CreateThreadpoolWait()
View Answer
A
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
View Answer
A
Q3819: The function used to specify the object for CreateThreadpoolWait() callback is called
- A: SetThreadpoolWait()
- B: CreateThreadpoolSet()
- C: SetWaitObject()
- D: RegisterThreadWait()
View Answer
A
Q3820: CreateThreadpoolIO() callbacks execute
- A: on I/O completion
- B: On timer expiration
- C: On thread creation
- D: On thread termination
View Answer
A