175176177178179180181182183184185
public Object run() throws Exception { ThreadPool tp = new ThreadPool(); tp.setKeepAliveTime(1 * 1000); tp.setPoolSize(1); tp.setPoolName("Server TP"); tp.doStart(); ClockPool cp = new ClockPool(); cp.setPoolName("Server CP"); cp.doStart();
8586878889909192939495
public Object run() throws Exception { ThreadPool tp = new ThreadPool(); tp.setKeepAliveTime(1 * 1000); tp.setPoolSize(5); tp.setPoolName("Client TP"); tp.doStart(); ClockPool cp = new ClockPool(); cp.setPoolName("Client CP"); cp.doStart();
165166167168169170171172173174175
public Object run() throws Exception { ThreadPool tp = new ThreadPool(); tp.setKeepAliveTime(1 * 1000); tp.setPoolSize(5); tp.setPoolName("Server TP"); tp.doStart(); ClockPool cp = new ClockPool(); cp.setPoolName("Server CP"); cp.doStart();
3738394041424344454647
public void test() throws Exception { ThreadPool tp = new ThreadPool(); tp.setKeepAliveTime(100); tp.setPoolSize(5); tp.setPoolName("TP"); tp.doStart(); SelectorManager sm = new SelectorManager(); sm.setThreadPool(tp); sm.setThreadName("SM"); sm.setTimeout(500);
119120121122123124125126127128129
public void testClone() throws Exception { ThreadPool tp = new ThreadPool(); tp.setKeepAliveTime(100); tp.setPoolSize(5); tp.setPoolName("TP"); tp.doStart(); SelectorManager sm = new SelectorManager(); sm.setThreadPool(tp); sm.setThreadName("SM"); sm.doStart();
4950515253545556575859
public void test() throws Exception { ThreadPool tp = new ThreadPool(); tp.setKeepAliveTime(100 * 1000); tp.setPoolSize(5); tp.setPoolName("TP"); tp.doStart(); ClockPool cp = new ClockPool(); cp.setPoolName("CP"); cp.doStart();
4041424344454647484950
public void test() throws Exception { ThreadPool tp = new ThreadPool(); tp.setKeepAliveTime(1 * 1000); tp.setPoolSize(5); tp.setPoolName("TP"); tp.doStart(); ClockPool cp = new ClockPool(); cp.setPoolName("CP"); cp.doStart();
3940414243444546474849