2010-07-24から1日間の記事一覧
起動しているスレッドを別スレッドから停止させようとするとき、次のような形のコードを時々見る。 import java.util.concurrent.TimeUnit; public class StopThread { private static boolean stopRequested; public static void main(String[] args) throw…
起動しているスレッドを別スレッドから停止させようとするとき、次のような形のコードを時々見る。 import java.util.concurrent.TimeUnit; public class StopThread { private static boolean stopRequested; public static void main(String[] args) throw…