paip.提升性能--多核cpu中的java/.net/php/c++编程(二)

2014-11-24 08:34:25 · 作者: · 浏览: 1
= ftc.fentsiMuilttheard(lica7_half2, wordLibs,
"thd_main");
//stop whiel half is not ok
int nn = 0;
while (true) {
if (half1_isfinesh) {
break;
}
nn++;
try {
Thread.sleep(50);
System.out.println("--sleep 500 ,num:" + nn);
} catch (InterruptedException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
List li_all=new ArrayList();
li_all.addAll(lica7_half1_result);
li_all.addAll(lica7_half2_result);
fc.saveList2file(li_all, targetTxt, "utf-8");
}