Monday, June 6, 2011

[android-developers] Re: Android LifeCycle and Singleton Instances

"Better pattern"> The Portland pattern Repository classifies double
locking as an "anti-pattern", not a pattern. The Wikipedia page on it
(http://en.wikipedia.org/wiki/Double-checked_locking) gives a pretty
good sense of why, though when they talk of pertinent java bugs, they
are, of course, referring to the Sun JRE.

On Jun 3, 7:51 am, Mark Murphy <mmur...@commonsware.com> wrote:
> On Fri, Jun 3, 2011 at 10:38 AM, Chris <crehb...@gmail.com> wrote:
> > While thread-safety is on your mind, you should know that double-checked
> > locking doesn't always fix that problem either.
>
> It did according to my sources. Got a better pattern?
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.0 Programming Books:http://commonsware.com/books

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate