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

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
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
15 questions
DEADLOCK

Quiz
•
University
10 questions
C-21 CS-405 OS Quiz-2

Quiz
•
University
20 questions
Operating System

Quiz
•
University
20 questions
Prefinal Operating System

Quiz
•
University
10 questions
Deadlock QUIZ Operating Systems

Quiz
•
University
10 questions
SE A-OS-Deadlock

Quiz
•
University
20 questions
Operating System Process Management

Quiz
•
University
10 questions
Operating System

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade