Question

Is a process in a blocked state deadlocked? Is a process in a deadlocked state blocked?...

Is a process in a blocked state deadlocked? Is a process in a deadlocked state blocked?

(Please help, Operating system question, 6 points)

Homework Answers

Answer #1

Process in a blocked state can't say in a deadlock(may or may not be). But a process in a deadlock is always blocked.

Deadlock detection in Resource Allocation Graphs
❖ If the graph contains no cycles => no deadlock
❖ If the graph contains a cycle =>
if only one instance per resource type, then deadlock

if several instances per resource type, possibility of deadlock

So in the above two diagrams, in left one P1, P2, P3 are blocked infinitely and are in deadlock while in diagram two, initially P1, P2, P3 are blocked initially but get unblocked after process P4 is done.

So Process in a blocked state can't say in a deadlock(may or may not be). But a process in a deadlock is always blocked.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What is the most "favored execution" of an unblocked process in deadlock detection by process-resource graphs?...
What is the most "favored execution" of an unblocked process in deadlock detection by process-resource graphs? (Please help, Operating system question, 6 points)
What is the relationship between swap time and the quantum for which the process is expected...
What is the relationship between swap time and the quantum for which the process is expected to have control of CPU? (Please help, Operating System question, 6 points)
Operating system Can a system be in a state that is neither deadlocked nor safe? If...
Operating system Can a system be in a state that is neither deadlocked nor safe? If so, give an example. If not, prove that all states are either deadlocked or safe.
Draw and explain 5 state process model in operating system.
Draw and explain 5 state process model in operating system.
OPERATING SYSTEM-- Consider the following state of a system with four processes and five types of...
OPERATING SYSTEM-- Consider the following state of a system with four processes and five types of resources. The first table represents the currently acquired resources (per process). 0 1 1 1 2 0 1 0 1 0 0 0 0 0 1 2 1 0 0 0 The second table represents the maximum remaining resource needs (per process). 1 1 0 2 1 0 1 0 2 1 0 2 0 3 1 0 2 1 1 0 E=(24144) A=(01021)...
Of what does a process consist? Why is it important that an operating system support the...
Of what does a process consist? Why is it important that an operating system support the suspended state?
The state of a process changes daily according to a two-state Markov chain. If the process...
The state of a process changes daily according to a two-state Markov chain. If the process is in state i during one day, then it is in state j the following day with probability Pi, j , where P0,0 = 0.3, P0,1 = 0.7, P1,0 = 0.2, P1,1 = 0.8 Every day a message is sent. If the state of the Markov chain that day is i then the message sent is “good” with probability pi and is “bad” with...
Consider the following four-process cycle that is carried out on a system of monatomic ideal gas,...
Consider the following four-process cycle that is carried out on a system of monatomic ideal gas, starting from state 1 in which the pressure is 88.0 kPa and the volume is 3.00 liters. Process A is an isothermal process that triples the volume; process B is a constant volume process that returns the system to a pressure of 88.0 kPa; process C is an isothermal process that returns the system to a volume of 3.00 liters; and process D is...
Assume several processes are running concurrently on a single processor system. Assume also that at time...
Assume several processes are running concurrently on a single processor system. Assume also that at time 2, P1 is running, no system resources (other than the CPU and memory) are being used, and that no process is in a blocked state waiting for an event to occur. Consider the following events: At time 3: P1's time slice expires At time 6: P2 is dispatched and given the CPU At time 7: P2 executes a command to read from disk unit...
Find the ratio of the probabilities between state 1 and state 2 (P(system in state 1)/P(system...
Find the ratio of the probabilities between state 1 and state 2 (P(system in state 1)/P(system in state 2)) of the following question. Find the probability that a tank of 100 grams of water will go from the state with the whole at 47 degrees (Celsius) to the state with the left half at 7 degrees (Celsius) and the right half at 87 degrees (Celsius). Please, derive the equation you are going to use, so I can now from where...