摘要:
1、同步线程状态图 2、怎么实现同步 线程间的相互作用 wait and notify The pools: Wait pool Lock pool 3、实例 场景: 常量number,当number是1是可以进行减1操作,当number为0时可以进行加1操作 1)Sample类 2)Increas 阅读全文
posted @ 2019-05-11 22:07 work hard work smart 阅读(157) 评论(0) 推荐(0)
|
|||
摘要:
1、同步线程状态图 2、怎么实现同步 线程间的相互作用 wait and notify The pools: Wait pool Lock pool 3、实例 场景: 常量number,当number是1是可以进行减1操作,当number为0时可以进行加1操作 1)Sample类 2)Increas 阅读全文
posted @ 2019-05-11 22:07 work hard work smart 阅读(157) 评论(0) 推荐(0) |
|||