Operating System Questions and Answers – Thread Cancellation

This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses 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
View Answer

Answer: c
Explanation: 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
View Answer

Answer: d
Explanation: 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
View Answer

Answer: a
Explanation: None.
advertisement
advertisement

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

Answer: d
Explanation: 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
View Answer

Answer: b
Explanation: 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
View Answer

Answer: b
Explanation: 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
View Answer

Answer: b
Explanation: None.
advertisement

Sanfoundry Global Education & Learning Series – Operating System.

advertisement

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.