Changes for page Deadlock Prevention

Last modified by chrisby on 2023/11/28 19:17

From version 1.1
edited by chrisby
on 2023/11/26 19:18
Change comment: There is no comment for this version
To version 1.3
edited by chrisby
on 2023/11/26 19:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,14 +1,13 @@
1 1  Deadlocks can only occur if all four specific conditions are met. Therefore, strategies to prevent deadlocks focus on negating one of these conditions.
2 2  
3 -#### Mutual Exclusion (Mutex)
3 +| ------------------------ | ------------------------------------------------------------------------------------------ | --------- | ---------------- |
4 +| Condition | Description | Solutions | Dangers/Problems |
5 +| Mutual Exclusion / Mutex |
4 4  
5 -* Description:
6 - * When resources can't be used by mutual thread and
7 - * there are less resources than threads.
8 -* Solutions:
9 - * Use concurrently accessible resources like AtomicInteger.
10 - * Increase the number of resources until its greater or equal to the number of competing threads.
11 - * Check if every required resource is accessible before the task starts.
7 +When resources can't be used by mutual thread and there are less resources than threads. | | |
8 +| | | | |
9 +| | | | |
10 +| | | | |
12 12  
13 13  #### Lock & Wait
14 14