For more background on a few of the topics discussed in this chapter, begin a search with these terms: False Deadlock Detection Starvation and Livelock Detection Distributed Deadlock Detection Deadlock Resolution Algorithms Operating System Freeze Exercises Research Topics In Chapter 3 we introduced the problem of thrashing. Research current literature to investigate the role of deadlock and any resulting thrashing. Discuss how you would begin to quantify the cost to the system (in terms of throughput and performance) of deadlock-caused thrashing. Cite your sources. Research the problem of livelock in a networked environment. Describe how its consequences differ from those of deadlock, and give a real-life example of the problem that\'s not mentioned in this chapter. Identify at least two different methods the operating system could use to detect and resolve livelock. Cite your sources. Exercises 1. For each of these conditions- deadlock, race, and starvation - give at least two \" real life\" examples (not related to a computer system environment) of each of these concepts. Then give your own opinion on how each of these six conditions can be resolved. Given the ice cream sundae example from the beginning of this chapter, identify which elements of the deadlock represent the four necessary conditions for this deadlock.
Solution to Problem 2 ::
Procedure ::
Step 1 :: Start
Step 2 :: Choose the serving bowl
Step 3 :: Select the spoon
Step 4 :: Warm up the ice cream scoop
Step 5 :: Coat the bottom of the dish in sauce
Step 6 :: Scoop the ice cream into your dish
Step 7 :: Heat the sauce in the microwave
Step 8 :: Drizzle sauce on the top of the ice cream
Step 9 :: Add something with the crunch
Step 10 :: Choose something the chewy
Step 11 :: Throw on the something fruity
Step 12 :: Finish the sundae
Step 13 :: Stop
From the above procedure we observe that the next step will be commenced after the completion of the current step.
So this procedure holds the condition \" Hold and Wait \" .This is one of the condition to occur the deadlock.
So we have to wait until the present step is completed.
/// *** Thank You *** ///