

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Operating System knowledge and support exam preparation. Choose a topic below to get started.
1. |
Thread pools limit the number of threads that exist at any one point, hence ____________ |
A. | not letting the system resources like CPU time and memory exhaust |
B. | helping a limited number of processes at a time |
C. | not serving all requests and ignoring many |
D. | none of the mentioned |
Answer» B. helping a limited number of processes at a time | |
2. |
Thread pools help in ____________ |
A. | servicing multiple requests using one thread |
B. | servicing a single request using multiple threads from the pool |
C. | faster servicing of requests with an existing thread rather than waiting to create a new thread |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
3. |
If the thread pool contains no available thread ____________ |
A. | the server runs a new process |
B. | the server goes to another thread pool |
C. | the server demands for a new pool creation |
D. | the server waits until one becomes free |
Answer» E. | |
4. |
Each connection arriving at multi threaded servers via network is generally ____________ |
A. | is directly put into the blocking queue |
B. | is wrapped as a task and passed on to a thread pool |
C. | is kept in a normal queue and then sent to the blocking queue from where it is dequeued |
D. | none of the mentioned |
Answer» C. is kept in a normal queue and then sent to the blocking queue from where it is dequeued | |
5. |
Thread pools are useful when ____________ |
A. | when we need to limit the number of threads running in the application at the same time |
B. | when we need to limit the number of threads running in the application as a whole |
C. | when we need to arrange the ordering of threads |
D. | none of the mentioned |
Answer» B. when we need to limit the number of threads running in the application as a whole | |