?? threadutils.java
字號:
package siuying.gm.app.gmailer4j;
import EDU.oswego.cs.dl.util.concurrent .*;
public class ThreadUtils{
private static PooledExecutor pool;
static {
pool = new PooledExecutor(new BoundedBuffer(10), 30);
pool.setMinimumPoolSize(4);
pool.setKeepAliveTime(1000 * 60);
pool.createThreads(10);
pool.runWhenBlocked();
}
public static PooledExecutor getPool(){
return pool;
}
public static void execute(java.lang.Runnable command) throws InterruptedException{
ThreadUtils.pool.execute(command);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -