run的代码:
public void run() {
try {
if (pause) {
synchronized (this) {
wait();
}
}
//thread sleep every 0.25 sencond, so will not excute more than 4 links within 1 second
Thread.sleep(250);
if (isrun) {
getGoodLinks((String) crawledUrls.get(i));
}

} catch (Exception e) {
// TODO Auto-generated catch block
System.out.println("----thread interrupted----");
}
}
唤醒的代码
pause = false;
synchronized (sa) { // 
sa.notifyAll();
}
百思不得其解,之前还可以唤醒的....