Multi threading design pattern

960 views
680 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
960
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Pattern, reusable solution for recurring problems
  • Thread Local
  • 1.执行框架,2.队列,CocurrentLinkedQueue ,高效、安全、可伸缩的非阻塞的FIFO队列,数据或任务队列.3.枚举,时间单位,纳秒,微妙,毫秒,秒4.同步器,提供像信号量,计数锁,CyclicBarrier5.提供了可并发使用的hashmap,arraylist和 set6.Atomic 以原子的形式更新变量
  • Multi threading design pattern

    1. 1. MultithreadingDesign Pattern
    2. 2. Design Pattern GoF
    3. 3. Multithreading
    4. 4. PATTERN 1Single Threaded Execution 能过这座桥的只有一个人
    5. 5. PATTERN 2Immutable想破坏它也么办法
    6. 6. PATTERN 3Guarded Suspension 要等额准备好才行
    7. 7. PATTERN 4 Balking不需要的话,就算了
    8. 8. PATTERN 5Producer-Consumer 我来做,你来用
    9. 9. PATTERN 6Read-Write Lock大家想看就看吧,不过看的时候可不 能写!
    10. 10. PATTERN 7Thread-Per-Message 这个工作就交给你了!
    11. 11. PATTERN 8Worker Thread Pattern 等到工作来,来了就工作
    12. 12. PATTERN 9 Future先给您提货单,两天后来拿!
    13. 13. PATTERN 10 Two-Phase Termination赶快把代码PUSH了,就下班吧!
    14. 14. PATTERN 10 Two-Phase Termination赶快把代码PUSH了,就下班吧!
    15. 15. PATTERN 11Thread-Specific Storage 每个人都会有个储物柜的
    16. 16. UTILS IN JAVAJava.util.concurrent Since Java 5 Doug Lee JAVA民间爱好者 世界上对java影响力 最大的个人
    17. 17. Java.util.concurrent1.Executor2.Queue3.TimeUnit4.Synchronizer5.Cocurrent Collection6.Locks & Atomic
    18. 18. Spring Thread Pool ?
    19. 19. GG……..

    ×