Question

For each of these conditions— deadlock, race, and starvation—give at least two “real life” examples (not...

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.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

Note: resolving solutions are also provided

Deadlock:

Example 1:

There are 2 persons waiting in the narrow door, one person standing inside and other person is standing outside. But none of them is willing to sacrifice for others. This situation is called deadlock. This can be resolved by the mutual exclusion between the 2 persons. Otherwise it cannot be solved.

Example 2:

Pedestrian path:

A car is waiting near the pedestrian path. A pedestrian is waiting on the pedestrian path. A car is standing for the pedestrian once the pedestrian crossed the car will be moved. At the same time the pedestrian is waiting once the car moves after he can cross the road. In this case nothing will happen this situation is called as the deadlock. This will also resolved by the mutual understanding between the car driver and the pedestrian

Starvation:

Example 1:

A school student is waiting for a bus, his school has only one bus and that need to load the other students from some other areas and finally to his place. He is waiting, waiting, waiting but the bus has not comes. Because the bus was dumped by the other students, finally that student got tensed and took a cab. This situation is called as the starvation. It can be resolved by adding the buses or else limiting the students.

Example 2:

One woman is working in a big organisation. Her working place is at the top of the organisation. On her lunch time she needs to go to the food court at the ground floor. She is waiting for the lift on the top. But the lift has been occupied by the some other persons who are all in the remaining floors because they are also coming for lunch. This girl is waiting, waiting, waiting but the lift has not comes. Finally she gets back to the office without food.

Race:

Example 1:

Ike and Erith are the brothers and sisters. They own a common fish tank. Every day Ike will feed the fishes after he reaches the school. He doesn’t know Erith is doing the same process of feeding the fishes. In a couple of months the fishes were died due to over feeding. It results to the UNPLANNED feeding race condition. Ike and Erith wanted to feed the fishes but they didn’t note that the fishes have already fed or not. This is called as race condition. It is resolved by monitoring the feeding status of the fish

Example 2:

2 girls were participating in the cookery show. They are separated their work. They have planned to make a butter cake. Both of them perfectly working and preparing the batter both the girls are added the baking powder twice without checking whether their co-partner is added or not. Finally the cake was collapsed and they lose their competition. This is due to the unplanned adding of baking powder. This is called as the race condition

Add a comment
Know the answer?
Add Answer to:
For each of these conditions— deadlock, race, and starvation—give at least two “real life” examples (not...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT