Search Header Logo

OS L5

Authored by Eng Yee Wei

Computers

University

Used 1+ times

OS L5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

In a busy restaurant, two chefs, Grace and Noah, are trying to prepare their signature dishes. Chef Grace needs a special pan that Chef Noah is currently using, while Chef Noah needs the same pan to finish his dish. What is a necessary condition for a deadlock to occur in this situation?

Preemption

Mutual exclusion

Starvation

Priority scheduling

2.

MULTIPLE SELECT QUESTION

20 sec • 5 pts

In a busy office, several employees are trying to use the printer, but only one person can use it at a time. Each employee is currently working on their own tasks and holding onto their documents. If one employee is waiting for the printer while another is using it, and they are all waiting for each other to finish, which of the following are among the four necessary conditions for a deadlock? (Select all that apply)

Mutual exclusion

Resource holding

Spooling

Circular wait

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

What is starvation in process management?

System-wide freeze
Two processes deadlocking
A process waiting indefinitely for resources
A type of scheduling algorithm

4.

MULTIPLE SELECT QUESTION

20 sec • 5 pts

Which of the following are deadlock handling strategies? (Select all that apply)

Prevention
Detection
Avoidance
Recovery

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

In a traffic jam analogy, what does each car represent in the context of deadlock modeling?

Resource
Process
Deadlock
Semaphore

6.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

In the spooling deadlock case, what causes the deadlock?

Printer failure
Insufficient spool area for all jobs
Power outage
Job priority mismatch

7.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which one is not one of the four conditions of deadlock?

No preemption
Starvation
Circular wait
Resource holding

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?