public void run() {
while(!total_quit) {
// do you processing
try{
canRunAgain.wait();
}catch(Exception e) {}
}
}canRunAgain.notify();
如果一个线程已经停了,你就再也不能让它再起来了.切记切记.第二问你的理解是对的.
while(!total_quit) {
// do you processing
try{
canRunAgain.wait();
}catch(Exception e) {}
}
}canRunAgain.notify();
如果一个线程已经停了,你就再也不能让它再起来了.切记切记.第二问你的理解是对的.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货