Changes for page Concurrency

Last modified by chrisby on 2024/06/02 15:15

From version 1.13
edited by chrisby
on 2023/11/30 20:37
Change comment: There is no comment for this version
To version 1.14
edited by chrisby
on 2023/11/30 20:39
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,7 +1,5 @@
1 -## Concurrency
1 +Objects are abstractions of processing, **threads are abstractions of timing**.
2 2  
3 -* Objects are abstractions of processing, threads are abstractions of timing.
4 -
5 5  ### Why concurrency?
6 6  
7 7  * **Concurrency is a decoupling strategy**. The what is decoupled from the when.
... ... @@ -27,14 +27,7 @@
27 27  
28 28  ### Things to learn before working with concurrency
29 29  
30 -* Get to know your library
31 - * Use the thread-safe collections provided.
32 - * Use the executor framework to execute disjointed tasks.
33 - * Use non-blocking solutions if possible.
34 - * Multiple library classes are not thread-safe.
35 -* Thread-safe collections
36 - * So you should use ConcurrentHashMap instead of HashMap.
37 - * Author's recommendations: java.util.concurrent, java.util.concurrent.atomic, java.util.concurrent.locks.
28 +* **Get to know your library**: Use the thread-safe collections provided. Use non-blocking solutions if possible. Be aware multiple library classes are not thread safe.
38 38  * Get to know execution models
39 39   * Basic definitions
40 40   * Bound Resources