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
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
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
Explanation: 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
View Answer
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
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
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
Explanation: None.
Sanfoundry Global Education & Learning Series – Operating System.
To practice all areas of Operating System, here is complete set on 1000+ Multiple Choice Questions and Answers on Operating System.
- Check Computer Science Books
- Check Operating System Books
- Apply for Computer Science Internship
- Practice Computer Science MCQs
- Practice BCA MCQs