Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About memory visibility..

8 views
Skip to first unread message

amin...@gmail.com

unread,
Aug 4, 2019, 4:40:47 PM8/4/19
to
Hello,


About memory visibility..


I have come to an interesting subject about memory visibility..

As you know that in parallel programming you have to take care
not only of memory ordering , but also take care about memory visibility,
read this to notice it:


Store Barrier

A store barrier, “sfence” instruction on x86, forces all store instructions prior to the barrier to happen before the barrier and have the store buffers flushed to cache for the CPU on which it is issued. This will make the program state "visible" to other CPUs so they can act on it if necessary.

I think that this is also the case in ARM CPUs and other CPUs..

So as you are noticing that i think that this memory visibility problem is
rendering parallel programming more "difficult" and more "dangerous".


What do you think about it ?



Thank you,
Amine Moulay Ramdane.



0 new messages