《Scalable IO in Java》學習筆記--- Worker Thread Pools

代碼大部分和Basic Reactor Design一樣,只是handler中對讀寫進行了多線程處理 ExecutorService pool = Executors.newCachedThreadPool();新建一個線程池 pool.execute(new readProcesser());//線程池運行讀線程 pool.execute(new sendProcesser());//線程池運行
相關文章
相關標籤/搜索