[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jfriends-ml 12589] Re: 「 JAVA CONCURRENCY IN PRACTICE 」を読む 会第7回予習編
"TAKAHASHI,Toru" wrote:
snip
> ・p.284 乱数生成のロジックにある同期化を調べてみる
  高橋(智)です。
  P284のページの内容を完全に忘れているので、とんちんかんな返信だとは
思いますが...
  http://java.sun.com/j2se/1.4.2/ReleaseNotes.html#142_13
にある
 「6362070 hotspot compiler1 Random is not thread-safe」
は、興味深くないですか?
  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6362070
ではWORKAROUNDとして
  「Build a synchronized statement around Math.random().」
と書かれています。
-- 
高橋智宏