摘要: 1.新建Account类,使用Semaphore同步增加和减少金额方法。 2.其他和https://www.cnblogs.com/xkzhangsanx/p/10759690.html一致。 注意释放信号量 3.测试结果 参考:java7并发编程实战手册 GitHub地址:https://gith 阅读全文
posted @ 2019-04-25 23:09 xkzhangsanx 阅读(214) 评论(0) 推荐(0) 编辑