![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JCIP
文章平均质量分 87
嘎嘎986
旅行,是心灵的阅读;而阅读,是心灵的旅行...
展开
-
JCIP-2-Thread Safety
2-Thread Safety 2.1-What is thread safety start Writing thread-safe code is at its core,about managing access to state,and in particular to shared,mutable state原创 2016-02-25 10:34:31 · 467 阅读 · 0 评论 -
JCIP-3-Sharing Objects
3-Sharing Objects 3.1-Visibility Synchronization also has another significant, and subtle, aspect: memory visibility. You can ensure that objects are published safely either by u原创 2016-02-25 10:38:03 · 419 阅读 · 0 评论 -
JCIP-4-Composing Objects
4-Composing Objects 4.1-Designing a Thread-safe Class 4.1.1. Gathering Synchronization Requirements The design process for a threadͲsafe class should include these three basi原创 2016-02-25 10:41:34 · 524 阅读 · 0 评论 -
JCIP-5-Building Blocks
5-Building Blocks 5.1. Synchronized Collections 5.1.1. Problems with Synchronized Collections 5.1.2. Iterators and Concurrentmodificationexception fail-fast meaning原创 2016-02-25 10:44:48 · 313 阅读 · 0 评论 -
JCIP-6-Task Execution
6-Task Execution 6.1-Executing tasks in threads 6.1.1. Executing Tasks Sequentially 6.1.2. Explicitly Creating Threads for Tasks 6.1.3. Disadvantages of Unbounded Thread原创 2016-02-25 10:46:44 · 458 阅读 · 0 评论 -
JCIP-7-Cancelletion and Shutdown
7-Cancelletion and Shutdown 7.1-Task cancellation 7.1.1. Interruption Java does not provide any mechanism for safely forcing a thread to stop what it is doing.[1] Instead, i原创 2016-02-25 10:48:12 · 438 阅读 · 0 评论 -
JCIP-8-Applying Thread Pools
8-Applying Thread Pools 8.1. Implicit Couplings Between Tasks and Execution Policies start ThreadLocal makes sense to use in pool threads only if the thread-local value has原创 2016-02-25 10:49:39 · 523 阅读 · 0 评论