Sail E0 Webinar

MCQs

Total Questions : 39 | Page 2 of 4 pages
Question 11. When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called :
  1.    Asynchronous cancellation
  2.    Systematic cancellation
  3.    Sudden Termination
  4.    Deferred cancellation
 Discuss Question
Answer: Option D. -> Deferred cancellation


None.


Question 12. Cancellation point is the point where :
  1.    the thread can be cancelled "“ safely or otherwise doesnt matter
  2.    the thread can be cancelled safely
  3.    the whole process can be cancelled safely
  4.    None of these
 Discuss Question
Answer: Option B. -> the thread can be cancelled safely


None.


Question 13. Cancelling a thread asynchronously :
  1.    frees all the resources properly
  2.    may not free each resource
  3.    spoils the process execution
  4.    None of these
 Discuss Question
Answer: Option B. -> may not free each resource


None.


Question 14. If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be :
  1.    continued
  2.    cancelled
  3.    protected
  4.    None of these
 Discuss Question
Answer: Option B. -> cancelled


None.


Question 15. Resource sharing helps :
  1.    share the memory and resources of the process to which the threads belong.
  2.    an application have several different threads of activity all within the same address space
  3.    reduce the address space that a process could potentially use
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these


None.


Question 16. Because the kernel thread management is done by the Operating System itself :
  1.    kernel threads are faster to create than user threads
  2.    kernel threads are slower to create than user threads
  3.    kernel threads are easier to manage as well as create then user threads
  4.    None of these
 Discuss Question
Answer: Option B. -> kernel threads are slower to create than user threads


None.


Question 17. Multithreading on a multi “ CPU machine :
  1.    decreases concurrency
  2.    increases concurrency
  3.    doesnt affect the concurrency
  4.    can increase or decrease the concurrency
 Discuss Question
Answer: Option B. -> increases concurrency


None.


Question 18. If the kernel is single threaded, then any user level thread performing a blocking system call will :
  1.    cause the entire process to run along with the other threads
  2.    cause the thread to block with the other threads running
  3.    cause the entire process to block even if the other threads are available to run
  4.    None of these
 Discuss Question
Answer: Option C. -> cause the entire process to block even if the other threads are available to run


None.


Question 19. The kernel is _______ of user threads.
  1.    a part of
  2.    the creator of
  3.    unaware of
  4.    aware of
 Discuss Question
Answer: Option C. -> unaware of


None.


Question 20. If a kernel thread performs a blocking system call, ____________________.
  1.    the kernel can schedule another thread in the application for execution.
  2.    the kernel cannot schedule another thread in the same application for execution.
  3.    the kernel must schedule another thread of a different application for execution.
  4.    the kernel must schedule another thread of the same application on a different processor.
 Discuss Question
Answer: Option A. -> the kernel can schedule another thread in the application for execution.


None.


Latest Videos

Latest Test Papers