#topicpath
----
#contents

まだ全然わかってないんですが、いろいろメモ。

*** synchronizedってどこが同期化されるか
下のクラスはsynchronizedのメソッドとそうでないメソッドがあります。
 public class Data {
  public synchronized void syncExecute() {
   System.out.println("syncExecute実行中......");
   try {
    Thread.sleep(3000);
   } catch (InterruptedException e) {
   }
 
   System.out.println("syncExecute実行終了");
  }
 
  public void execute() {
   System.out.println("execute実行");
  }
 }







----
この記事は
#vote(おもしろかった,そうでもない)

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS