System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3731: WaitForThreadpoolWorkCallbacks can optionally cancel work objects whose callbacks have not yet _______.
- A: started
- B: finished
- C: been scheduled
- D: been created
View Answer
A
Q3732: In WaitForThreadpoolWorkCallbacks, the second parameter is used to specify whether to cancel _______.
- A: callbacks that have not started
- B: callbacks in progress
- C: all callbacks
- D: none
View Answer
A
Q3733: In the callback function WorkCallback, the parameter Context corresponds to the value obtained from _______.
- A: parameter pv
- B: thread ID
- C: work object
- D: callback instance
View Answer
A
Q3734: The Instance parameter in WorkCallback provides _______.
- A: thread ID
- B: callback instance
- C: worker object
- D: callback function
View Answer
B
Q3735: The CallbackMayRunLong flag informs the kernel that the callback may run _______.
- A: for a short time
- B: for a long time
- C: only once
- D: multiple times
View Answer
B
Q3736: The SubmitThreadpoolWork API requires the work object reference returned by _______.
- A: CreateThreadpoolWork
- B: WaitForThreadpoolWorkCallbacks
- C: WorkCallback
- D: CallbackMayRunLong
View Answer
A
Q3737: The thread pool automatically adjusts the number of worker threads based on _______.
- A: process behavior
- B: CPU speed
- C: memory usage
- D: user input
View Answer
A
Q3738: Applications can set _______ bounds on the number of worker threads in the thread pool.
- A: upper and lower
- B: only upper
- C: only lower
- D: none
View Answer
A
Q3739: The work object handle used in thread pool APIs is of type _______.
- A: PTP_WORK
- B: PTP_CALLBACK
- C: PVOID
- D: PTP_THREAD
View Answer
A
Q3740: Thread pool callback functions should never call _______ within their callback function.
- A: _endthreadex()
- B: ExitThread()
- C: CreateThread()
- D: Sleep()
View Answer
A