System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3711: There is always ________ thread pool available by default.
- A: one
- B: multiple
- C: none
- D: unlimited
View Answer
A
Q3712: Additional thread pools can be created by
- A: Windows
- B: Applications
- C: the CPU
- D: Schedulers
View Answer
B
Q3713: Thread pools improve performance by
- A: reducing thread creation overhead
- B: increasing CPU usage
- C: delaying thread execution
- D: avoiding synchronization
View Answer
A
Q3714: A thread pool worker object is identified by
- A: a handle
- B: callback function
- C: name
- D: priority
View Answer
A
Q3715: Using thread pools helps avoid frequent
- A: thread creation
- B: context switching
- C: cache misses
- D: memory leaks
View Answer
A
Q3716: The callback function in a thread pool is called by
- A: worker thread
- B: application
- C: main thread
- D: process
View Answer
B
Q3717: If a work object calls _endthreadex() inside the callback, it may cause
- A: thread leaks
- B: thread pool malfunction
- C: thread termination
- D: thread starvation
View Answer
B
Q3718: Windows thread pool adjusts threads according to
- A: process load
- B: process priority
- C: memory usage
- D: thread count
View Answer
A
Q3719: Thread pools are best suited for
- A: applications with many short tasks
- B: applications with few threads
- C: real-time systems
- D: single-threaded apps
View Answer
A
Q3720: Which statement is true about thread pools?
- A: They use a fixed number of threads
- B: They create a new thread for every task
- C: They reuse threads to handle work objects
- D: They terminate threads after every task
View Answer
C