Operating system mcqs threads pools

YOU CAN DOWNLOAD 200+ SUBJECTS PDF BOOK FOR COMPETITIVE EXAMINATIONS

CLICK HERE TO DOWNLOAD

Operating system mcqs threads pools

Question 1 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
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
Question 2 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
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
Question 3 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
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
Question 4 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
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
Question 5 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
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
There are 5 questions to complete.