Search Header Logo

Deadlocks in Operating Systems Quiz

Authored by Pushpendra Pateriya

Computers

University

Used 2+ times

Deadlocks in Operating Systems Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which initialization of the semaphores would print the sequence BCABCABCA.......?

S1 = 1, S2 = 0, S3 = 0

S1 = 1, S2 = 1, S3 = 1

S1 = 0, S2 = 0, S3 = 1

S1 = 0, S2 = 1, S3 = 0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is/are TRUE with respect to deadlocks?

Deadlocks can occur in a system with multiple processes.

Deadlocks can always be avoided.

Deadlocks cannot occur in single-threaded applications.

Deadlocks can be resolved by resource preemption.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the largest value of K that will always avoid deadlock in a system with 3 processes sharing 4 instances of the same resource type?

1

3

2

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a system with 6 identical resources and N processes competing for them, which value of N could lead to a deadlock?

3

6

5

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum value of n for a system with 6 tape drives to be deadlock free if each process may need 2 drives?

5

4

3

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following outcomes is/are possible when threads T1 and T2 execute concurrently?

x = 2, x = 1

x = 1, x = 2

x = 1, x = 1

x = 2, x = 2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If five threads execute the function parop concurrently, which of the following program behaviors is/are possible?

Counter increments to 4

Counter increments to 5

Counter increments to 2

Counter increments to 3

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?