Re: Memory Consistency Errors



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."
.



Relevant Pages

  • Re: Memory Consistency Errors
    ... While reading the tutorial http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html, ... It is said that memory consistency errors can occur even when atomicity of reading/writing access is guaranteed with volatile. ... (which often go through hardware write buffers so the CPU ...
    (comp.lang.java.programmer)
  • Re: Lock variables between two threads
    ... L2/L3 cache shared between cores), or always an entire word (or ... atomicity of the read/modify/write to the cache line even with ... Reading or writing a byte. ...
    (microsoft.public.vc.language)
  • Re: page table lock patch V15 [0/7]: overview
    ... all the stuff we put in to simulate 64 bit atomicity for i386 PAE mode if ... reading or writing a word aligned on a 16-bit boundary ... that the following additional memory operations will always be carried out ...
    (Linux-Kernel)
  • Re: How to do atomic read?
    ... is atomic and InterlockedXxxxx functions are not necessary to ... ensure atomicity for reading? ... "vasanth" wrote: ...
    (microsoft.public.development.device.drivers)
  • Re: mutex question
    ... Atomicity is a requirement for reading or writing? ... rid of the spin lock) as: ... Introducing MSFT-specific language extensions hardly makes things more ...
    (microsoft.public.win32.programmer.kernel)

Loading