Operating System MCQ and Answers – Thread Cancellation

These Operating System MCQ and Answers – Thread Cancellation are asked in various examinations including BCA, MCA, GATE, and other tests. The questions based on the below Operating System MCQ and Answers – Thread Cancellation test your basic knowledge of MCQs on the topic of Operating Systems and the level of comprehension and grasp that you hold.

Operating System MCQ and Answers – Thread Cancellation

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

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

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

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

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

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

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

Comments