Thread1 ExecutorService / ThreadPoolExecutor Mulity Thread 동시 작업을 하기 위한 방법으로 1.5 에서 제공하는 ExecutorService 를 사용한다. 예전엔 Thread를 관리하기 위해 ThreadGroup을 만들고 관리 하는 방법이 복잡하고 어려운점이 있었다. ExecutorService를 이용하면 내부적으로 ThreadPoolExecutor 를 생성한다. (new ThreadPoolExecutor(nThreads, nThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue());) threadPoolExecutor 인자 ThreadPoolExecutor(corePoolSize, maximumPoolSize ,keepAliveTime, TimeUnit, BlockingQueue) .. 2018. 11. 12. 이전 1 다음 728x90