add runasync

master
yihua.huang 2013-06-23 22:16:04 +08:00
parent cad2594a08
commit a7316a1f57
1 changed files with 11 additions and 0 deletions

View File

@ -215,6 +215,17 @@ public class Spider implements Runnable, Task {
}
}
public void runAsync(){
Thread thread = new Thread(){
@Override
public void run() {
Spider.this.run();
}
};
thread.setDaemon(false);
thread.start();
}
/**
* 线
* @param threadNum 线