Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged deadlock-prevention-avoidance-detection
0
votes
0
answers
121
Galvin Edition 9 Exercise 7 Question 24 (Page No. 344)
What is the optimistic assumption made in the deadlock-detection algorithm ? How can this assumption be violated ?
What is the optimistic assumption made in the deadlock-detection algorithm ? How can this assumption be violated ?
akash.dinkar12
456
views
akash.dinkar12
asked
Mar 21, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
descriptive
+
–
1
votes
1
answer
122
Galvin Edition 9 Exercise 7 Question 23 (Page No. 344)
Consider the following snapshot of a system: $Allocation$ $Max$ $Available$ $A$ $B$ $C$ $D$ $A$ $B$ $C$ $D$ $A$ $B$ $C$ $D$ $P_0$ $2$ $0$ $0$ $1$ $4$ $2$ $1$ $2$ $3$ $3$ $2$ $1$ $P_1$ $3$ $1$ ... $c$. If a request from process $P_4$ arrives for $(0, 0, 2, 0)$, can the request be granted immediately?
Consider the following snapshot of a system: $Allocation$ $Max$ ...
akash.dinkar12
2.5k
views
akash.dinkar12
asked
Mar 21, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
1
answer
123
Galvin Edition 9 Exercise 7 Question 22 (Page No. 343)
Consider the following snapshot of a system: $Allocation$ $Max$ $A$ $B$ $C$ $D$ $A$ $B$ $C$ $D$ $P_0$ $3$ $0$ $1$ $4$ $5$ $1$ $1$ $7$ $P_1$ $2$ $2$ $1$ $0$ $3$ $2$ $1$ $1$ $P_2$ $3$ $1$ $2$ $1$ $3$ ... processes may complete.Otherwise, illustrate why the state is unsafe. $a$. $Available$ $=$ $(0, 3, 0, 1)$ $b$. $Available$ $=$ $(1, 0, 0, 2)$
Consider the following snapshot of a system: $Allocation$ $Max$ $A$ $B...
akash.dinkar12
5.6k
views
akash.dinkar12
asked
Mar 21, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
124
Galvin Edition 9 Exercise 7 Question 21 (Page No. 343)
We can obtain the banker’s algorithm for a single resource type from the general banker’s algorithm simply by reducing the dimensionality of the various arrays by 1. Show through an example that we cannot implement the multiple-resource-type banker’s scheme by applying the single-resource-type scheme to each resource type individually.
We can obtain the banker’s algorithm for a single resource type from the general banker’s algorithm simply by reducing the dimensionality of the various arrays by 1. ...
akash.dinkar12
515
views
akash.dinkar12
asked
Mar 21, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
125
Galvin Edition 9 Exercise 7 Question 20 (Page No. 343)
Consider again the setting in the preceding question. Assume now that each philosopher requires three chopsticks to eat. Resource requests are still issued one at a time. Describe some simple rules for determining whether a particular request can be satisfied without causing deadlock given the current allocation of chopsticks to philosophers.
Consider again the setting in the preceding question. Assume now that each philosopher requires three chopsticks to eat. Resource requests are still issued one at a time....
akash.dinkar12
506
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
126
Galvin Edition 9 Exercise 7 Question 19 (Page No. 343)
Consider the version of the dining-philosophers problem in which the chopsticks are placed at the center of the table and any two of them can be used by a philosopher. Assume that requests for chopsticks are ... whether a particular request can be satisfied without causing deadlock given the current allocation of chopsticks to philosophers.
Consider the version of the dining-philosophers problem in which the chopsticks are placed at the center of the table and any two of them can be used by a philosopher. As...
akash.dinkar12
464
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
127
Galvin Edition 9 Exercise 7 Question 18 (Page No. 343)
Consider a system consisting of $m$ resources of the same type being shared by $n$ processes.Aprocess can request or release only one resource at a time. Show that the system is deadlock free if the following two conditions hold: a. The maximum ... is between one resource and $m$ resources. b. The sum of all maximum needs is less than $m + n$.
Consider a system consisting of $m$ resources of the same type being shared by $n$ processes.Aprocess can request or release only one resource at a time. Show that the sy...
akash.dinkar12
296
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
2
answers
128
Galvin Edition 9 Exercise 7 Question 17 (Page No. 343)
Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadlock free.
Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is dea...
akash.dinkar12
4.4k
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
1
votes
0
answers
129
Galvin Edition 9 Exercise 7 Question 16 (Page No. 342-343)
In a real computer system, neither the resources available nor the demands of processes for resources are consistent over long periods (months). Resources break or are replaced, new processes come and go, and new resources are bought ... not need that many resources). e. Increase the number of processes. f. Decrease the number of processes.
In a real computer system, neither the resources available nor the demands of processes for resources are consistent over long periods (months). Resources break or are re...
akash.dinkar12
2.8k
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
130
Galvin Edition 9 Exercise 7 Question 15 (Page No. 342)
Compare the circular-wait scheme with the various deadlock-avoidance schemes (like the banker’s algorithm) with respect to the following issues: a. Runtime overheads b. System throughput
Compare the circular-wait scheme with the various deadlock-avoidance schemes (like the banker’s algorithm) with respect to the following issues:a. Runtime overheadsb. S...
akash.dinkar12
631
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
131
Galvin Edition 9 Exercise 7 Question 13 (Page No. 341)
... t always lead to deadlock. Describe what role the $CPU$ scheduler plays and how it can contribute to deadlock in this program.
$/* thread one runs in this function */void *do work one(void *param){pthread mutex lock(&first mutex);pthread mutex lock(&second mutex);/ * Do some work*/pthread mutex u...
akash.dinkar12
243
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
132
Galvin Edition 9 Exercise 7 Question 12 (Page No. 341)
Assume a multithreaded application uses only reader–writer locks for synchronization. Applying the four necessary conditions for deadlock, is deadlock still possible if multiple reader–writer locks are used ?
Assume a multithreaded application uses only reader–writer locks for synchronization. Applying the four necessary conditions for deadlock, is deadlock still possible if...
akash.dinkar12
398
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
133
Galvin Edition 9 Exercise 7 Question 11 (Page No. 341-342)
Consider the traffic deadlock depicted in Figure 7.10. a. Show that the four necessary conditions for deadlock hold in this example. b. State a simple rule for avoiding deadlocks in this system
Consider the traffic deadlock depicted in Figure 7.10.a. Show that the four necessary conditions for deadlock hold in this example.b. State a simple rule for avoiding dea...
akash.dinkar12
796
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
134
Galvin Edition 9 Exercise 7 Question 10 (Page No. 341)
Is it possible to have a deadlock involving only one single-threaded process ? Explain your answer
Is it possible to have a deadlock involving only one single-threaded process ? Explain your answer
akash.dinkar12
200
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
135
Galvin Edition 9 Exercise 7 Question 9 (Page No. 341)
Suppose that you have coded the deadlock-avoidance safety algorithm and now have been asked to implement the deadlock-detection algorithm. Can you do so by simply using the safety algorithm code and redefining $Max_i$ ... $Allocation_i$ specifies the resources currently allocated to process $P_i$ ? Explain your answer.
Suppose that you have coded the deadlock-avoidance safety algorithm and now have been asked to implement the deadlock-detection algorithm. Can you do so by simply using t...
akash.dinkar12
239
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
1
votes
0
answers
136
Galvin Edition 9 Exercise 7 Question 8 (Page No. 341)
Consider the following resource-allocation policy. Requests for and releases of resources are allowed at any time. If a request for resources cannot be satisfied because the resources are not available, then we check any processes ... no, specify which necessary condition cannot occur. b. Can indefinite blocking occur ? Explain your answer.
Consider the following resource-allocation policy. Requests for and releases of resources are allowed at any time. If a request for resources cannot be satisfied because ...
akash.dinkar12
753
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
137
Galvin Edition 9 Exercise 7 Question 7 (Page No. 341)
Can a system detect that some of its processes are starving? If you answer “yes,” explain how it can. If you answer “no,” explain how the system can deal with the starvation problem.
Can a system detect that some of its processes are starving? If you answer “yes,” explain how it can. If you answer “no,” explain how the system can deal with the...
akash.dinkar12
369
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
1
votes
0
answers
138
Galvin Edition 9 Exercise 7 Question 6 (Page No. 340)
Consider a computer system that runs 5,000 jobs per month and has no deadlock-prevention or deadlock-avoidance scheme. Deadlocks occur about twice per month, and the operator must terminate and re run about ten ... for installing the deadlock-avoidance algorithm ? b. What are the arguments against installing the deadlock-avoidance algorithm?
Consider a computer system that runs 5,000 jobs per month and has no deadlock-prevention or deadlock-avoidance scheme. Deadlocks occur about twice per month, and the oper...
akash.dinkar12
514
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
1
answer
139
Galvin Edition 9 Exercise 7 Question 5 (Page No. 340)
Prove that the safety algorithm requires an order of $m$ $×$ $n^2$ operations where $n$ is the number of processes in the system and $m$ is the number of resource types.
Prove that the safety algorithm requires an order of $m$ $×$ $n^2$ operations where $n$ is the number of processes in the system and $m$ is the number of resource types....
akash.dinkar12
317
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
1
answer
140
Galvin Edition 9 Exercise 7 Question 3 (Page No. 340)
Consider the following snapshot of a system: $Allocation$ $Max$ $Available$ $A$ $B$ $C$ $D$ $A$ $B$ $C$ $D$ $A$ $B$ $C$ $D$ $P_0$ $0$ $0$ $1$ $2$ $0$ $0$ $1$ $2$ $1$ $5$ $2$ $0$ $P_1$ $1$ $0$ $0$ ... $Need$ ? b. Is the system in a safe state ? c. If a request from process $P_1$ arrives for $(0,4,2,0)$, can the request be granted immediately ?
Consider the following snapshot of a system: $Allocation$ $Max$ $Available$ ...
akash.dinkar12
2.3k
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
+
–
0
votes
0
answers
141
Galvin Edition 9 Exercise 7 Question 2 (Page No. 339)
Suppose that a system is in an unsafe state. Show that it is possible for the processes to complete their execution without entering a deadlocked state.
Suppose that a system is in an unsafe state. Show that it is possible for the processes to complete their execution without entering a deadlocked state.
akash.dinkar12
359
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
descriptive
+
–
0
votes
0
answers
142
Galvin Edition 9 Exercise 7 Question 1 (Page No. 339)
List three examples of deadlocks that are not related to a computer system environment.
List three examples of deadlocks that are not related to a computer system environment.
akash.dinkar12
279
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
deadlock-prevention-avoidance-detection
descriptive
+
–
2
votes
1
answer
143
Is priority inversion and spinlock same?
Soham Mukherjee
1.6k
views
Soham Mukherjee
asked
Jan 24, 2019
Operating System
operating-system
process-synchronization
deadlock-prevention-avoidance-detection
+
–
3
votes
1
answer
144
Ace Test Series: Operating System - Deadlock
Na462
705
views
Na462
asked
Jan 21, 2019
Operating System
operating-system
process-synchronization
deadlock-prevention-avoidance-detection
ace-test-series
+
–
1
votes
1
answer
145
ME & Deadlock - Semaphores
Will there be Mutual Exclusion & Deadlock ?
Will there be Mutual Exclusion & Deadlock ?
SamAddy
773
views
SamAddy
asked
Jan 20, 2019
Operating System
operating-system
semaphore
process-synchronization
deadlock-prevention-avoidance-detection
mutual-exclusion
+
–
1
votes
1
answer
146
Applied Course | Mock GATE | Test 1 | Question: 22
Consider there are $3$ threads T1, T2, and T3. And there are $4$ locks L1, L2, L3, and L4. T1 acquires and releases the locks L1 and L2. T2 acquires and releases the locks L1 and L3. T3 acquires and releases the ... runs concurrently to completion and then T3 runs. T1 and T3 runs concurrently to completion and then T2 runs. None of the above.
Consider there are $3$ threads T1, T2, and T3. And there are $4$ locks L1, L2, L3, and L4.T1 acquires and releases the locks L1 and L2.T2 acquires and releases the locks ...
Applied Course
488
views
Applied Course
asked
Jan 16, 2019
Operating System
applied-course-2019-mock1
operating-system
process-synchronization
deadlock-prevention-avoidance-detection
+
–
3
votes
4
answers
147
MadeEasy Test Series: Operating System - Resource Allocation
Shankar Kakde
1.3k
views
Shankar Kakde
asked
Jan 9, 2019
Operating System
test-series
made-easy-test-series
deadlock-prevention-avoidance-detection
resource-allocation
+
–
1
votes
1
answer
148
Deadlocks
Hardik Vagadia
678
views
Hardik Vagadia
asked
Jan 9, 2019
Operating System
operating-system
resource-allocation
deadlock-prevention-avoidance-detection
+
–
1
votes
1
answer
149
made easy test
A system has 10 identical resources and N processes competing for them. Each process can request at most 3 resources but by grouping of first 3 processes needs only 6 resources. Then, the maximum value of ‘N is ______?
A system has 10 identical resources and N processes competing for them. Each process can request at most 3 resources but by grouping of first 3 processes needs only 6 res...
newdreamz a1-z0
664
views
newdreamz a1-z0
asked
Jan 7, 2019
Operating System
deadlock-prevention-avoidance-detection
+
–
0
votes
1
answer
150
GATE CSE 2015 Set 3 | Question: 52 OS Doubt
In this question:- https://gateoverflow.in/8561/gate2015-3-52 In options II III and IV i am not understanding how its violating the rule of circular wait. Rather i feel its creating a circular wait condition. Please Explain…. Any Example would be appreciated.
In this question:- https://gateoverflow.in/8561/gate2015-3-52In options II III and IV i am not understanding how its violating the rule of circular wait. Rather i feel it...
Shamim Ahmed
409
views
Shamim Ahmed
asked
Jan 6, 2019
Operating System
operating-system
deadlock-prevention-avoidance-detection
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register