Home / CSE MCQs / OS MCQs :: Deadlocks - Operating System

CSE MCQs :: OS MCQs

  1. The request and release of resources are ___________.
  2. A.
    command line statements
    B.
    interrupts
    C.
    system calls
    D.
    special programs

  3. Multithreaded programs are :
  4. A.
    lesser prone to deadlocks
    B.
    more prone to deadlocks
    C.
    not at all prone to deadlocks
    D.
    None of these

  5. For Mutual exclusion to prevail in the system :
  6. A.
    at least one resource must be held in a non sharable mode
    B.
    the processor must be a uniprocessor rather than a multiprocessor
    C.
    there must be at least one resource in a sharable mode
    D.
    All of these

  7. For a Hold and wait condition to prevail :
  8. A.
    A process must be not be holding a resource, but waiting for one to be freed, and then request to acquire it
    B.
    A process must be holding at least one resource and waiting to acquire additional resources that are being held by other processes
    C.
    A process must hold at least one resource and not be waiting to acquire additional resources
    D.
    None of these

  9. Deadlock prevention is a set of methods :
  10. A.
    to ensure that at least one of the necessary conditions cannot hold
    B.
    to ensure that all of the necessary conditions do not hold
    C.
    to decide if the requested resources for a process have to be given or not
    D.
    to recover from a deadlock

  11. For non sharable resources like a printer, mutual exclusion :
  12. A.
    must exist
    B.
    must not exist
    C.
    may exist
    D.
    None of these

  13. For sharable resources, mutual exclusion :
  14. A.
    is required
    B.
    is not required
    C.
    None of these

  15. To ensure that the hold and wait condition never occurs in the system, it must be ensured that :
  16. A.
    whenever a resource is requested by a process, it is not holding any other resources
    B.
    each process must request and be allocated all its resources before it begins its execution
    C.
    a process can request resources only when it has none
    D.
    All of these

  17. The disadvantage of a process being allocated all its resources before beginning its execution is :
  18. A.
    Low CPU utilization
    B.
    Low resource utilization
    C.
    Very high resource utilization
    D.
    None of these

  19. To ensure no preemption, if a process is holding some resources and requests another resource that cannot be immediately allocated to it :
  20. A.
    then the process waits for the resources be allocated to it
    B.
    the process keeps sending requests until the resource is allocated to it
    C.
    the process resumes execution without the resource being allocated to it
    D.
    then all resources currently being held are preempted