|
|
|
|
|
by AmpsterMan
1262 days ago
|
|
In some sense you have a race condition. By taking the item and misplacing it, you've caused a deadlock. Solutions are kinda the same: have a copy of the item for every person that might use it, or be strict about freeing all locked resources. |
|