Sail E0 Webinar

MCQs

Total Questions : 21 | Page 1 of 3 pages
Question 1. To ensure that the hold and wait condition never occurs in the system, it must be ensured that :
  1.    whenever a resource is requested by a process, it is not holding any other resources
  2.    each process must request and be allocated all its resources before it begins its execution
  3.    a process can request resources only when it has none
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these


c “ A process may request some resources and use them. Before it can can request any additional resources, however it must release all the resources that it is currently allocated.


Question 2. For non sharable resources like a printer, mutual exclusion :
  1.    must exist
  2.    must not exist
  3.    may exist
  4.    None of these
 Discuss Question
Answer: Option A. -> must exist


A printer cannot be simultaneously shared by several processes.


Question 3. For sharable resources, mutual exclusion :
  1.    is required
  2.    is not required
  3.    None of these
 Discuss Question
Answer: Option B. -> is not required


They do not require mutually exclusive access, and hence cannot be involved in a deadlock.


Question 4. The disadvantage of a process being allocated all its resources before beginning its execution is :
  1.    Low CPU utilization
  2.    Low resource utilization
  3.    Very high resource utilization
  4.    None of these
 Discuss Question
Answer: Option B. -> Low resource utilization


None.


Question 5. To ensure no preemption, if a process is holding some resources and requests another resource that cannot be immediately allocated to it :
  1.    then the process waits for the resources be allocated to it
  2.    the process keeps sending requests until the resource is allocated to it
  3.    the process resumes execution without the resource being allocated to it
  4.    then all resources currently being held are preempted
 Discuss Question
Answer: Option D. -> then all resources currently being held are preempted


None.


Question 6. What is the reusable resource?
  1.    that can be used by one process at a time and is not depleted by that use
  2.    that can be used by more than one process at a time
  3.    that can be shared between various threads
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> that can be used by one process at a time and is not depleted by that use


None.


Question 7. Which of the following condition is required for deadlock to be possible?
  1.    mutual exclusion
  2.    a process may hold allocated resources while awaiting assignment of other resources
  3.    no resource can be forcibly removed from a process holding it
  4.    all of the mentioned
 Discuss Question
Answer: Option D. -> all of the mentioned


None.


Question 8. The circular wait condition can be prevented by:
  1.    defining a linear ordering of resource types
  2.    using thread
  3.    using pipes
  4.    all of the mentioned
 Discuss Question
Answer: Option A. -> defining a linear ordering of resource types


None.


Question 9. A system is in the safe state if:
  1.    the system can allocate resources to each process in some order and still avoid a deadlock
  2.    there exist a safe sequence
  3.    both (a) and (b)
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> both (a) and (b)


None.


Question 10. Which one of the following is the deadlock avoidance algorithm?
  1.    banker's algorithm
  2.    round-robin algorithm
  3.    elevator algorithm
  4.    karn's algorithm
 Discuss Question
Answer: Option A. -> banker's algorithm


None.


Latest Videos

Latest Test Papers