Self Studies

Operating Syste...

TIME LEFT -
  • Question 1
    1 / -0

    Consider a system having 'N' resources of the same type. X, Y and Z are the three processes that shared the resource. The peak demand of X, Y and Z are 5, 11, and 9 respectively. What is the maximum value of 'N' to ensures the system is in deadlock?

  • Question 2
    1 / -0

    The total number of instances of a resource is 11. Four processes A, B, C, and D are present in the system. The allocation table of the resources is given below. 

    Process

    Max. Need

    Current Allocation

    D

    9

    1

    C

    5

    4

    B

    10

    3

    A72

     

    Which of the following orders of process execution forms a deadlock-free sequence?

  • Question 3
    1 / -0

    Which of the below-given statement is/are true?

    1. Deadlock is waiting for a resource from a process that will never release it resource.
    2. Banker’s Algorithm is used to avoid deadlock in a system.

  • Question 4
    1 / -0

    Consider a system in which there are P processes. A1, A2, … AP is the processes that share K identical resource units, which can be reserved and release at a time. The peak requirement per process is Xi. Which of the following condition is necessary to say that the system is in deadlock state?(Assume Xi > 0)

  • Question 5
    1 / -0

    An operating system uses the Banker’s algorithm for deadlock avoidance when managing the allocation of three resource types A, B, and C to four processes P0, P1, P2, and P3.

    Process

    Allocation

    Max

    Available

     

    A

    B

    C

    A

    B

    C

    A

    B

    C

    P0

    4

    3

    3

    5

    4

    4

    3

    2

    2

    P1

    1

    2

    0

    3

    2

    0

    P2

    3

    0

    1

    6

    0

    2

    P3

    1

    1

    0

    2

    1

    1

     

    Which of the following best describes the current state of the system?

  • Question 6
    1 / -0

    Which of the following statements are True?

    I. All unsafe states are deadlocks.

    II. A deadlock-avoidance algorithm dynamically examines the resource-allocation state to ensure that a circular-wait condition can never exist.

    III. To eliminate deadlock if a process and resources are selected for preemption on the basis of cost leads to starvation.

  • Question 7
    1 / -0

    In a computer system, 28 processes are present and they share R resources of the same type. Each process can request a maximum of 5 resources. What is the minimum value of R such that no deadlock occurs?

  • Question 8
    1 / -0

    An operating system uses the banker's algorithm for deadlock avoidance to manage the allocation of four resources A, B, C, and D. The table given below represents the current system state.

     

    Allocation

    Max

     

    A

    B

    C

    D

    A

    B

    C

    D

    P1

    1

    2

    1

    0

    1

    3

    1

    2

    P2

    3

    1

    2

    1

    5

    3

    2

    1

    P3

    4

    2

    3

    0

    7

    2

    3

    4

    P4

    0

    0

    1

    5

    1

    1

    3

    6

     

    There are 3 units of type B, 2 units of type D still available. Which of the following sequence is a safe sequence?

  • Question 9
    1 / -0

    Which of the following is/are not true about the deadlock scheme?

    I.  In deadlock avoidance, number the resource uniquely and never requests a lower-numbered resource

    II. In deadlock avoidance, the request for the resources is always granted if the resulting state is safe.

    III. In deadlock prevention, never request a resource after releasing any resource.

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 9

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
Submit Test
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now