
Deadlocks in Operating Systems Quiz

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
20 questions
OS - Assessment 05

Quiz
•
University
20 questions
Operating System Process Management

Quiz
•
University
19 questions
Deadlock Basics

Quiz
•
University
10 questions
OPERATING SYSTEM

Quiz
•
University
15 questions
ERP 1

Quiz
•
University - Professi...
19 questions
SDLC

Quiz
•
University
10 questions
Operating Systems

Quiz
•
University
20 questions
Algo Duel

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade