PLEASE, READ THE QUESTION BEFORE ANSWERING, GIVE A NEW, CLEAR AND UNDERSTANDABLE ANSWER. THANKS IN ADVANCE
For each of these conditions—deadlock, livelock, race, and starvation—give at least one real-life example, which is not related to a computer system environment and not already suggested in this chapter, of each of these concepts. Then give your own opinion on how each of the four examples can be resolved.
Deadlock- You want to build a house, for this you need building permit and to get building permit you need bank loan.To get that bank loan you need building permit.
Solution- Either bank or the municipality should recognize the procedural flaw and they should make an exception. You can also obtain letter of intent from anyone of the two which would prove other that procedure has been started but status is pending.
Livelock-When you try to make a call to your friend and he is also trying to call you too, so you both hang up thinking that you'll call after sometime. But again both of you try after the same time and the same situation created again.This affair can go on for eternity.
Solution- Either you or he can send text message that I want to talk to you.
Starvation- If an airport has single check in counter followed by two queues one for economy class and other of business class.Due to nearby business convention, business queue is always overcrowded and this led economy queue to stuck at the same position. A person of economy class may miss the plane.
Solution- There should be separate check in counter for each class- Economy class and Business class
Race- A scholarship grant has provision that it will be awarded to first 100 applicants.Due to lot of applications received, envelopes are sorted by date of submission. If 2 persons are appointed for the sorting of the application, due to non synchronization of their working, 101th envelope can be processed before 99th envelope.
Solution- Both the persons, appointed for envelope sorting, should synchronize the process.
Get Answers For Free
Most questions answered within 1 hours.