Operating System MCQs

1019 MCQs  (Page 71 of 102)

When a web page is loading, and the user presses a button on the browser to stop loading the page?
A. The thread loading the page continues with the loading
B. The thread loading the page does not stop but continues with another task
C. The thread loading the page is paused
D. The thread loading the page is cancelled
When one thread immediately terminates the target thread, it is called ____________
A. Asynchronous cancellation
B. Systematic cancellation
C. Sudden termination
D. Deferred cancellation
When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called?
A. Asynchronous cancellation
B. Systematic cancellation
C. Sudden termination
D. Deferred cancellation
Cancelling a thread asynchronously ____________
A. Frees all the resources properly
B. May not free each resource
C. Spoils the process execution
D. None of the mentioned
Cancellation point is the point where ____________
A. The thread can be cancelled €? safely or otherwise doesn’t matter
B. The thread can be cancelled safely
C. The whole process can be cancelled safely
D. None of the mentioned
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
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
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