Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

[Quiz] Deadlock - OS

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

A set of process waits for a resource which is held by another waiting process is called

a)

Deadlock

b)

Starvation

c)

Aging

d)

Preemptive

2.

What is Deadlock ?

a)

resource is assigned to only one process at a time

b)

process owns a resource and claiming the other resource

c)

each waiting process is waiting for the next process in the chain and none is able to get the resource

d)

specific condition when two or more process are waiting for each other release a resource

3.

Which of the following is NOT a necessary condition for deadlock?

a)

Circular Wait

b)

Mutual Relationship

c)

Hold and wait

d)

No pre-emption

4.

What are the ways of dealing with deadlock?

a)

Deadlock prevention

b)

Deadlock recovery

c)

Deadlock detection

d)

All of the mentioned

5.

What is mean by Circular Wait ?

a)

each waiting process is waiting for the next process in the chain and none is able to get the resource

b)

regain the resources

c)

know a deadlock has occurred

d)

calculate cycles about to happen and stop dangerous operation

6.

Identify the CORRECT method for handling deadlock in an operating system.

a)

Ignore deadlock

b)

Circular wait

c)

Wait deadlock

d)

Protect deadlock

7.

Deadlock _________ requires additional information on how resources will be requested

a)

prevention

b)

recovery

c)

detection

d)

avoidance

8.

Detection and recovery incurs ________ for executing

  the detection algorithm with possible losses from

  recovering from a deadlock

a)

overheads

b)

losses of memory

c)

starvation

d)

overheated

9.

When a detection algorithm detects a deadlock, recovery

  methods could be:

a)

inform the operator and the operator deals with the deadlock manually

b)

let the system, recover from the deadlock automatically

c)

break the deadlock

d)

Press Win+Shift+S to terminate proccess

10.

Which situation BEST describing deadlock?

a)

Process 1 use Resource A and ask to use Resource B, Process 2 is currently using Resource B

b)

Process 2 use Resource B and don't need Resources A. Process 1 have release Resource A