We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
写道题:实现一个容器,提供两个方法,add,size 写两个线程,线程1添加10个元素到容器中,线程2实现监控元素的个数,当个数到5个时,线程2给出提示并结束?
千锋教育
说出使用CountDownLatch 代替wait notify 好处?