【摘录】正确理解线程等待和释放(wait/notify)
摘要:
Java代码 /** *线程A:循环50次后等待并放弃锁,让线程B执行。 */ classThreadAextendsThread{ //线程同步的公共数据区 Objectoa=null; ThreadA(Objec... 阅读全文
posted @ 2011-08-04 15:02 IamEasy_Man 阅读(505) 评论(0) 推荐(0) 编辑
Filled With Confidence , And Never Say Give Up !
posted @ 2011-08-04 15:02 IamEasy_Man 阅读(505) 评论(0) 推荐(0) 编辑