First a definition of the Java Memory Model based on:
- Ordering
- Atomicity
- Visibility
Interesting thing I missed, volatile keyword guarantees atomic R/W on lon and double types.
He then goes on quoting stuff from Java Concurrency in practice (Brian Goetz), e.g. the Holy Bible ;).
Once again I see somebody enforcing the need of immutable objects! So people! Use them!!!!!!!! It IS the key to safe publication.

0 commentaires:
Enregistrer un commentaire