ShineYoung

导航

 

2019年3月4日

摘要: Java ReentrantLock 个人认为的好处主要在于用condition(await,signal)代替了synchronized的(wait,notify) synchronized的(wait,notify)唤醒线程只能所有都唤醒或者唤醒随机一个 condition(await,sign 阅读全文
posted @ 2019-03-04 20:55 ShineYoung 阅读(147) 评论(0) 推荐(0) 编辑
 
摘要: Java Timer 定时类,主要用来执行定时任务 Timer管理所有要执行的定时任务 TimerTask封装好的定时任务 常见的用法 Schedules the specified task for execution after the specified delay. Schedules th 阅读全文
posted @ 2019-03-04 15:06 ShineYoung 阅读(180) 评论(0) 推荐(0) 编辑