ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > zstu-(2021-2022)-1 > student homework directories > 2019329621182刘辰萱 >
2019329621182-刘辰萱-homework-7 Version 0
👤 Author: by rootfreanjacn 2021-12-25 22:20:19

One example I can think of is the Table, Flashlight, and Batteries scenario. If you were to walk to this table and grab the batteries while another person has the flashlight you both will be forced to awkwardly stare at each other while waiting for who will first place their item back on the table. You and the person are waiting for resources but none of you are giving up their resource.


a)


Mutual Exclusion :A resource(Flashlight or Batteries) can only be occupied by one person


Hold and wait: One person takes one resource and waits for another


No preemption: Can't get resources that someone else already has


Circular wait: Both sides are waiting for the other's resources


b)


The party with the battery voluntarily gives up resources

Please login to reply. Login

Reversion History

Loading...
No reversions found.