スレッドプールを利用する – Executorsクラス public static ExecutorService newFixedThreadPool( [int t [,ThreadFactory factory]]) public static ExecutorService newSingleThreadExecutor ([ThreadFactory factory]) public static ScheduledExecutorService newSingleThreadScheduledExecutor( [ThreadFactory factory]) public static ScheduledExecutorService newScheduledThreadPool( int size [,ThreadFactory factory]) t:スレッド数 size