Liste des Groupes | Revenir à c arch |
On Mon, 23 Sep 2024 0:53:35 +0000, jseigh wrote:
I have a pretty good understanding of atomicity and memoryAs far as loads and stores go, if they are atomic thenWhen you include stores from devices into memory, we agree.
a load will not see a value that was not from some store.
A LD should return the last written value.
When you include device control registers; all bets are off.
Regarding memory barriers, that depends on the hardwareIn particular, we are talking about a sequence of instructions
memory model and the program logic assuming one knows
how to do concurrent algorithms.
with the properties:: a) an external observer can see only
the previous or new values of a concurrent data structure
and none of the intermediate changes, and b) should the
event fail somewhere in the middle, no-one saw any of
the intermediate state, either.
The event is bigger than the memory reference instruction.
And finally, getting the MemBarIzation correct seems to
be beyond many-most programmers leading to error prone
applications.
Les messages affichés proviennent d'usenet.