in Operating System edited by
6,017 views
8 votes
8 votes

When a process is rolled back as a result of deadlock the difficulty which arises is

  1. Starvation
  2. System throughput
  3. Low device utilization
  4. Cycle stealing
in Operating System edited by
by
6.0k views

3 Comments

please explain me meaning of this line if possible give me a best example for this line 

"  process is rolled back as a result of deadlock "

0
0
In situations where deadlock is a real possibility, the system can periodically make a record of the state of each process and when deadlock occurs, roll everything back to the last checkpoint, and restart, but allocating resources differently so that deadlock does not occur.
0
0
any example ??
0
0

4 Answers

11 votes
11 votes
Best answer
We can see the example of bridge crossing, in which bridge has only one lane.

Deadlock will occur when 2 cars of opposing direction meet.

one or more cars may have to backed up if deadlock occurs.

Then starvation(indefinite waiting) is possible.
selected by

4 Comments

why not system throughput. it will also get affected
5
5
Yes, it does. But starvation is a better answer here.
4
4
True, lower throughput sounds like a lesser problem than starvation.
0
0
I think starvation is the only perfect answer here.
0
0
3 votes
3 votes
I guess starvation should be the answer if we rollback the process there may be possiblity again deadlock occur so it may goes in starvation.

OPTION A
1 vote
1 vote

1. Starvation might happen for the process but can be avoided.

2. System throughput will be affected as the whole execution of the process till the rollback is going waste.

3. Device is used in rollback - actually more than the ideal case.

4 Cycle stealing is not a related concept. 

So, answer is 2- System throughput as starvation might not always be there. 

by
0 votes
0 votes
So here also answer should be c . Ryt ?

4 Comments

And sir but of all those 3 System thoughput is most importnat one right ? Because all the computation done so far has to done again . This is the reason why you said B ? Computaion matter more rather than no of process queue for starvation and low device utilization
0
0
yes. but it is not just the better option. And you should read the words in question clearly for GATE- starvation "might" happen. But we can't say starvation "will" happen. But "system throughput" will be affected.
0
0

here https://gateoverflow.in/18583/isro2009-77 

ans is A  so which one is correct 

also system throughput might increase if deadlock is resolved 

0
0
Answer:

Related questions