Re: Memory Consistency Errors
- From: mei <mei@xxxxxx>
- Date: Wed, 14 Feb 2007 21:00:47 +0100
Knute Johnson a écrit :
mei wrote:Hi,
While reading the tutorial http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html,
something caught my attention:
It is said that memory consistency errors can occur even when atomicity of reading/writing access is guaranteed with volatile.
However they don't develop this matter.
Is there somebody that could explain me more how could this happen?
Thank in advance.
I looked and couldn't find the reference you mentioned. Do you have the URL of the page you saw that on?
Thanks,
Here it is even though it seems it is outdated:
http://java.sun.com/docs/books/tutorial/essential/concurrency/atomic.html
"Atomic actions cannot be interleaved, so they can be used without fear of thread interference. However, this does not eliminate all need to synchronize atomic actions, because memory consistency errors are still possible."
.
- Follow-Ups:
- Re: Memory Consistency Errors
- From: Lew
- Re: Memory Consistency Errors
- References:
- Memory Consistency Errors
- From: mei
- Re: Memory Consistency Errors
- From: Knute Johnson
- Memory Consistency Errors
- Prev by Date: Re: Calypso Medical - Senior Software Engineer - Systems
- Next by Date: Re: Scatter/Gather in Java or Javascript & html (Dynamic class loading?)
- Previous by thread: Re: Memory Consistency Errors
- Next by thread: Re: Memory Consistency Errors
- Index(es):
Relevant Pages
|
Loading