Deadlocks in Operating Systems Quiz

Deadlocks in Operating Systems Quiz

University

15 Qs

quiz-placeholder

Similar activities

Operating System

Operating System

University

10 Qs

Programação Concorrente

Programação Concorrente

University

10 Qs

OS QUIZ(UNIT-III)

OS QUIZ(UNIT-III)

University

10 Qs

Revision C

Revision C

University

20 Qs

OS - Assessment 05

OS - Assessment 05

University

20 Qs

Operating Systems

Operating Systems

KG - University

20 Qs

Operating System Process Management

Operating System Process Management

University

20 Qs

Ch5_Database Transaction Management

Ch5_Database Transaction Management

University

15 Qs

Deadlocks in Operating Systems Quiz

Deadlocks in Operating Systems Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Pushpendra Pateriya

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?