
Deadlocks in Operating Systems Quiz
Authored by Pushpendra Pateriya
Computers
University
Used 2+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Machine Learning (Introduction)
Quiz
•
University
20 questions
Round 1 ( RHA Learner Contest )
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
20 questions
Network topologies
Quiz
•
8th Grade - University
18 questions
CIS2303 Week 4_5 Ch_3
Quiz
•
University
20 questions
Software Engineering Quiz 1
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade