Operating System Questions and Answers – Thread Pools

This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Thread Pools”.

1. 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
View Answer

Answer: a
Explanation: None.

2. Instead of starting a new thread for every task to execute concurrently, the task can be passed to a ___________
a) process
b) thread pool
c) thread queue
d) none of the mentioned
View Answer

Answer: b
Explanation: None.

3. 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
View Answer

Answer: b
Explanation: None.
advertisement
advertisement

4. What is the idea behind thread pools?
a) a number of threads are created at process startup and placed in a pool where they sit and wait for work
b) when a process begins, a pool of threads is chosen from the many existing and each thread is allotted equal amount of work
c) all threads in a pool distribute the task equally among themselves
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

5. 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
View Answer

Answer: d
Explanation: None.

6. 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
View Answer

Answer: c
Explanation: None.

7. 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
View Answer

Answer: a
Explanation: None.
advertisement

8. The number of the threads in the pool can be decided on factors such as ____________
a) number of CPUs in the system
b) amount of physical memory
c) expected number of concurrent client requests
d) all of the mentioned
View Answer

Answer: d
Explanation: None.

Sanfoundry Global Education & Learning Series – Operating System.

Here’s the list of Best Books in Operating System.

advertisement

To practice all areas of Operating System, here is complete set on 1000+ Multiple Choice Questions and Answers on Operating System.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.