250+ TOP MCQs on Thread Cancellation and Answers

Operating System Multiple Choice Questions on “Thread Cancellation”.

1. What is Thread cancellation?
a) the task of destroying the thread once its work is done
b) the task of removing a thread once its work is done
c) the task of terminating a thread before it has completed
d) none of the mentioned

Answer: c
Clarification: None.

2. 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

Answer: d
Clarification: None.

3. When one thread immediately terminates the target thread, it is called ____________
a) Asynchronous cancellation
b) Systematic cancellation
c) Sudden Termination
d) Deferred cancellation

Answer: a
Clarification: None.

4. 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

Answer: d
Clarification: None.

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

Answer: b
Clarification: None.

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

Answer: b
Clarification: None.

7. If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be ____________
a) continued
b) cancelled
c) protected
d) none of the mentioned

Answer: b

Leave a Reply

Your email address will not be published. Required fields are marked *