单纯的consumer竞争不过两个producer,synchronized是非公平锁。你在producer方法的wait()后面sleep 1s看看。
点赞 1

相关推荐

03-20 09:55
已编辑
牛客运营
点赞 评论 收藏
分享
牛客网
牛客企业服务