Deadlocks: Circular Wait of Resource(s) by a Process Held by Another Process

This is a computer science engineering quiz on operating systems, which includes questions based on deadlock, necessary conditions for deadlock, removing deadlock, etc.

images.jpg
Start Quiz

Which of the following is system software?

Operating system Compiler Utilities All of the above

Which one of the following is not a multitasking operating system?

DOS Windows Unix Linux

Which of the following condition is required for a deadlock to be possible?

Mutual exclusion

A process may hold allocated resources while awaiting assignment of other resources

No resource can be forcibly removed from a process holding it

All of the mentioned

What is a reusable resource?

That can be used by one process at a time and is not depleted by that use

That can be used by more than one process at a time

That can be shared between various threads

None of the mentioned

A system is in the safe state if ____________.

The system can allocate resources to each process in some order and still avoid a deadlock

There exist a safe sequence

All of the mentioned

None of the mentioned

The circular wait condition can be prevented by ____________.

Defining a linear ordering of resource types

Using thread

Using pipes

All of the mentioned

What is the drawback of banker’s algorithm?

In advance processes rarely know how much resource they will need

The number of processes changes as time progresses

Resource once available can disappear

All of the mentioned

A user-interface that is easy to use is considered to be____________.

User-happy

User-simple

User-friendly

None of the above

A ..... is a flash memory storage device that plugins into a USB port.

USB snap drive

USB flash drive

USB memory maker drive

None of above

The ....... is the drive containing the files to be copied.

Source drive

Destination drive

USB drive

None of the above

A deadlock can be broken by ____________.

Abort one or more processes to break the circular wait

Abort all the process in the system

Preempt all resources from all processes

None of the mentioned

The two ways of aborting processes and eliminating deadlocks are ____________.

Abort all deadlocked processes

Abort all processes

Abort one process at a time until the deadlock cycle is eliminated

All of the mentioned

Those processes should be aborted on occurrence of a deadlock, the termination of which?

Is more time consuming

Incurs minimum cost

Safety is not hampered

All of the mentioned

Cost factors for process termination include ____________.

Number of resources the deadlock process is not holding

CPU utilization at the time of deadlock

Amount of time a deadlocked process has thus far consumed during its execution

All of the mentioned

The process to be aborted is chosen on the basis of the following factors?

Priority of the process

Process is interactive or batch

How long the process has computed

All of the mentioned

Quiz/Test Summary
Title: Deadlocks: Circular Wait of Resource(s) by a Process Held by Another Process
Questions: 15
Contributed by:
james