IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
セマフォ(Semaphore)java.util.concurrent.Semaphoreを使うと、処理の同時実行数を制限する事ができる。セマフォと言えば同時実行数を1に制限するものという勝手なイメージを持っていたが、全然そんな事はない。 final Semaphore semaphore = new Semaphore(2); Runnable r = new Runnable() { public void run() { try { System.out.println("はよせぇや!"); semaphore.acquire(); System.out.println("やった、ワシの番や"); TimeUnit.SECONDS.sleep(1); System.out.println("はぁ、スッキリしたわ"); semaphore.release(); } catch(Inte
■[開発]Java5.0新機能のお勉強(8) 複数非同期処理の新しい実行方法(Executor)【続き】 スケジュール可能なExecutorとして、ScheduledExecutorServiceがあり、 Executors#newScheduledThreadPool、Executors#newSingleThreadScheduledExecutorで生成できる。 2つの違いは名前の通り、シングルスレッドで実行するかどうか。 newScheduledThreadPoolの方でサンプルを書いてみた。 ScheduledExecutorServiceでタスクを繰り返し実行するには二通りの方法がある。 scheduleAtFixedRate:タスクが指定した間隔で実行される scheduleWithFixedDelay:タスクの前回終了時から指定時間経過後に次のタスクが実行される Javas
最初に言っときます。スレッドの章に入ってかなり理解するのに疲れたので、記述レベル低いです。。 スレッドで未捕捉の例外を処理する今まで、スレッド内で発生した例外はスレッド内でtry-catchするしか捕捉する手が無かった。java.lang.Thread.UncaughtExceptionHandlerというインタフェースが追加され、これをThreadにセットする事で外部から例外捕捉時の処理を記述する事ができるようになった。 Thread t = new Thread(new Runnable() { public void run() { int i=10; while(true) { System.out.println(1/i--); } } }); t.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler()
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く