OPERATING SYSTEM

105403
Back to OPERATING SYSTEM

Module 4: Deadlocks

  1. Q1a. A computer system has 9 tape drives, with processes competing for them. Each process may need 3 tape drives. The maximum value of n for which the system is guaranteed to be deadlock free is (i) 9 (ii) 7 (iii) 4 (iv) 620232m

    Module 4: Deadlocks

    A computer system has 9 tape drives, with processes competing for them. Each process may need 3 tape drives. The maximum value of n for which the system is guaranteed to be deadlock free is
    (i) 9
    (ii) 7
    (iii) 4
    (iv) 6

    View this question on its own page →
  2. Q1e. What is the drawback of banker's algorithm? (i) in advance processes rarely know how much resource they will need (ii) the number of processes changes as time progresses (iii) resource once available can disappear (iv) all of the mentioned20242m

    Module 4: Deadlocks

    What is the drawback of banker's algorithm?
    (i) in advance processes rarely know how much resource they will need
    (ii) the number of processes changes as time progresses
    (iii) resource once available can disappear
    (iv) all of the mentioned

    View this question on its own page →
  3. Q1h. When a process waits indefinitely for some resources which are being used by other processes, it is called (i) Starvation (ii) Demand Paging (iii) Segmentation (iv) None of the above20232m

    Module 4: Deadlocks

    When a process waits indefinitely for some resources which are being used by other processes, it is called
    (i) Starvation
    (ii) Demand Paging
    (iii) Segmentation
    (iv) None of the above

    View this question on its own page →
  4. Q1h. If the wait for graph contains a cycle, then (i) a deadlock does not exist (ii) a deadlock exists (iii) the system is in a safe state (iv) either deadlock exists or system is in a safe state20222m

    Module 4: Deadlocks

    If the wait for graph contains a cycle, then
    (i) a deadlock does not exist
    (ii) a deadlock exists
    (iii) the system is in a safe state
    (iv) either deadlock exists or system is in a safe state

    View this question on its own page →
  5. Q1h. Which of the following conditions is required for deadlock to be possible? (i) Mutual exclusion (ii) A process may hold allocated resources while awaiting assignment of other resources (iii) No resource can be forcibly removed from a process holding it (iv) All of the above20192m

    Module 4: Deadlocks

    Which of the following conditions is required for deadlock to be possible?
    (i) Mutual exclusion
    (ii) A process may hold allocated resources while awaiting assignment of other resources
    (iii) No resource can be forcibly removed from a process holding it
    (iv) All of the above

    View this question on its own page →
  6. Q1i. Which one of the following is the deadlock avoidance algorithm? (i) Banker's algorithm (ii) Round-robin algorithm (iii) Elevator algorithm (iv) Karn's algorithm20192m

    Module 4: Deadlocks

    Which one of the following is the deadlock avoidance algorithm?
    (i) Banker's algorithm
    (ii) Round-robin algorithm
    (iii) Elevator algorithm
    (iv) Karn's algorithm

    View this question on its own page →
  7. Q4a. Describe the techniques for recovery from deadlock? Explain briefly resource allocation graph with examples.20247m

    Module 4: Deadlocks

    Describe the techniques for recovery from deadlock? Explain briefly resource allocation graph with examples.

    View this question on its own page →
  8. Q5a. What do you understand by deadlock? Discuss the methods to avoid deadlock.20237m

    Module 4: Deadlocks

    What do you understand by deadlock? Discuss the methods to avoid deadlock.

    View this question on its own page →
  9. Q5a. Clearly justify why deadlocks cannot arise in a bounded buffer producers-consumers system.20227m

    Module 4: Deadlocks

    Clearly justify why deadlocks cannot arise in a bounded buffer producers-consumers system.

    View this question on its own page →
  10. Q5b. State and explain the necessary and sufficient conditions for a deadlock.20237m

    Module 4: Deadlocks

    State and explain the necessary and sufficient conditions for a deadlock.

    View this question on its own page →
  11. Q5b. Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadlock-free.20227m

    Module 4: Deadlocks

    Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadlock-free.

    View this question on its own page →
  12. Q7. Compare and contrast Deadlock Prevention and Deadlock Avoidance. Can a system be in a state that is neither deadlock nor safe? If so, give an example. If not, prove that all states are either deadlock or safe.202414m

    Module 4: Deadlocks

    Compare and contrast Deadlock Prevention and Deadlock Avoidance. Can a system be in a state that is neither deadlock nor safe? If so, give an example. If not, prove that all states are either deadlock or safe.

    View this question on its own page →
  13. Q8a. Define deadlock. List four necessary conditions for occurrence of deadlock.20197m

    Module 4: Deadlocks

    Define deadlock. List four necessary conditions for occurrence of deadlock.

    View this question on its own page →
  14. Q8b. A system contains six units of resource, and n processes that use the resource. What is the maximum value of n for which the system will be deadlock free if the maximum requirement of each process is 3?20197m

    Module 4: Deadlocks

    A system contains six units of resource, and n processes that use the resource. What is the maximum value of n for which the system will be deadlock free if the maximum requirement of each process is 3?

    View this question on its own page →