countdownlatch,本质就是把AQS中的state值设置为你的count,countdown时就cas修改,await时,若count还没减到0就加入阻塞队列。
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务