This link has been bookmarked by 157 people . It was first bookmarked on 02 Mar 2006, by yw.
-
28 Jan 23
-
28 Jan 17
-
17 Jul 16
-
22 Feb 16
-
04 Feb 16
-
02 Feb 16
-
is almost guaranteed not to work once the Java Memory Model is revised
-
However, even with a full memory barrier being performed by the thread that initializes the helper object, it still doesn't work.
-
The problem is that on some systems, the thread which sees a non-null value for the helper field also needs to perform memory barriers.
-
(e.g., a memory barrier), reads can be performed out of stale locally cached copies, even if other processors used memory barriers to force their writes into global memory.
-
On some processors, unless the processor performs a cache coherence instruction
-
-
07 Oct 15
-
30 Jul 15
-
01 Jan 15
-
24 Apr 14
-
17 Mar 14
-
28 Nov 13
-
15 Nov 13
-
21 May 13
-
20 Apr 13
-
01 Dec 12
-
synchronized
-
-
09 Nov 12
-
30 May 12
-
03 Apr 12
-
However, there is no rule which says that actions after the monitorexit may not be done before the monitor is released.
-
-
20 Dec 11
-
28 Nov 11
-
24 Oct 11
Jure SkelinDouble-Checked Locking is Broken
java concurrency locking threads concurrent multithreading patterns
-
11 Sep 11
-
03 Aug 11
-
11 Jun 11
-
28 May 11
-
06 Apr 11
-
03 Apr 11
-
27 Jan 11
-
11 Nov 10
-
19 Aug 10
-
16 Jun 10
-
08 Apr 10
-
26 Mar 10
-
18 Mar 10
Lodovico Ketjapogoogle for more hits
-
29 Jan 10
-
13 Dec 09
-
08 Nov 09
-
17 Sep 09
-
24 Aug 09
-
12 Aug 09
-
JDK5 and later extends the semantics for volatile so that the system will not allow a write of a volatile to be reordered with respect to any previous read or write, and a read of a volatile cannot be reordered with respect to any following read or write.
-
-
05 Aug 09
-
28 Jun 09
-
24 Jun 09
-
17 Jun 09
-
06 Jun 09
-
28 Apr 09
-
11 Mar 09
-
26 Jan 09
-
15 Jan 09
-
10 Jan 09
-
10 Nov 08
-
05 May 08
-
27 Mar 08
-
23 Mar 08
-
07 Mar 08
-
05 Mar 08
-
21 Feb 08
seathingJust define the singleton as a static field in a separate class. The semantics of Java guarantee that the field will not be initialized until the field is referenced, and that any thread which accesses the field will see all of the writes resulting from i
java Programming locking threads multithreading patterns concurrent pattern singleton double-checked-locking-singleton tips delicious
-
14 Feb 08
-
11 Feb 08
-
06 Jan 08
-
Very
-
-
14 Dec 07
-
13 Aug 07
-
23 Jul 07
viniciusjlDouble-Checked Locking is widely cited and used as an efficient method for implementing lazy initialization in a multithreaded environment. Unfortunately, it will not work reliably in a platform independent way when implemented in Java. When implemented i
algorithm lock c++ java memory model thread concurrency parallel pos research
-
13 Jun 07
-
09 Jun 07
-
27 Jan 07
-
26 Jan 07
-
19 Dec 06
-
09 Dec 06
-
14 Nov 06
-
23 Oct 06
-
17 Oct 06
Leonid VygovskiyСтатья по какой-то тонкости работы с многопоточностью в Java. Особо не вникал.
-
02 Oct 06
-
08 Sep 06
-
10 Aug 06
-
04 Aug 06
-
17 Jun 06
-
17 May 06
-
08 May 06
-
17 Apr 06
diigodeli dunbarDouble-Checked Locking is widely cited and used as an efficient method for implementing lazy initialization in a multithreaded environment.
Unfortunately, it will not work reliably in a platform independent way when implemented in Java. When implemente -
14 Mar 06
-
30 Aug 05
-
13 Feb 05
-
25 Aug 04
-
19 Jul 04
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.