J2SE之并发编程
gdjbj2007
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
线程虚假唤醒情况介绍
虚假唤醒的原因: http://blog.youkuaiyun.com/nhn_devlab/article/details/6117239 http://en.wikipedia.org/wiki/Spurious_wakeup http://www.cnblogs.com/leaven/archive/2010/06/03/1750973.html...原创 2012-06-13 22:56:13 · 143 阅读 · 0 评论 -
JUC之CyclicBarrier
CyclicBarrier 功能、结构 CyclicBarrier 示例 CyclicBarrier 源码原创 2014-05-16 11:04:34 · 110 阅读 · 0 评论 -
线程基础理解
Thread.interrupted(): interrupt()的作用是中断本线程。本线程中断自己是被允许的;其它线程调用本线程的interrupt()方法时,会通过checkAccess()检查权限。这有可能抛出SecurityException异常。如果本线程是处于阻塞状态:调用线程的wait(), wait(long)或wait(long, int)会让它进入等待...原创 2014-05-19 17:09:39 · 190 阅读 · 0 评论 -
JUC之ReentrantLock(二)
ReentrantLock.unLock():锁的释放 public void unlock() { sync.release(1);//AQS } AbstractQueuedSynchronizer.release() public final boolean release(int arg) { if...原创 2014-06-12 15:55:44 · 144 阅读 · 0 评论 -
JUC并发集合DelayQueue
DelayQueue 1. DelayQueue is an unbounded queue. It extends Delayed interface.2. Element from DelayQueue can only be taken when its delay has expired.3. At the head of the queue , element wit...2014-06-13 12:01:28 · 170 阅读 · 0 评论
分享