タグ

2012年5月18日のブックマーク (2件)

  • multisoft-lab.com

    multisoft-lab.com 2021 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy

  • Java言語規定 スレッド及びロック

    目次| 前| 次 17. スレッド及びロック これまでの記述の大半は,文又は式を,一度に一つ,つまり一つの スレッド(thread) で実行するJavaコードの振舞いだけに関係していたが,Java仮想計算機は,一度に多数のスレッドを実行することができる。 これらのスレッドは,共有主メモリに存在するJavaの値及びオブジェクトを操作するJavaコードを独立して実行する。 複数のスレッドは,複数のハードウェアプロセッサを搭載したり,一つのハードウェアプロセッサを時分割したり,又は複数のハードウェアプロセッサを時分割することによって,実現してもよい。 Javaは,スレッドの並行活動を 同期化する(synchronizing) 機構を提供することによって,並行的だが決定論的な振舞いを示すプログラムを支援する。 スレッドを同期化するために,Javaでは,モニタ(monitor) を使用する。 モニタ