作者webberhan (别打了, 真不忍心 W19)
看板java
标题[心得] 需要用Multithread的朋友请内入Doug Lea's Concurrency util
时间Thu Sep 28 23:07:30 2006
Doug Lea 是JSR166 (JDK1.5 java.util.concurrent and jsr166x)的制定者之一
他的util.concurrent 有许多实用的 concurrent programming 工具, 如:
Sync -- locks, conditions
Channel -- queues, buffers
Barrier -- multi-party synchronization
SynchronizedVariable -- atomic ints, refs etc
java.util.Collection -- collections
Executor -- replacements for direct use of Thread
而且各有多种 Implementation
如果能了解这些程式码, 相信Concurrency Programming会有一定功力
即使是只拿来用也是妙用无穷, 至少会比我自己写的安全吧
http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html
--
And I don't think that I'll see her again,
But we shared a moment that will last till the end.
You're beautiful. You're beautiful.
You're beautiful, it's true.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.229.161.162