Clarification about the wording in SharedArrayBuffer #605
-
In the docs for SharedArrayBuffer there is the use of the word "eventually" to describe when side effects will become visible in other agents. "However, the shared data block referenced by the two SharedArrayBuffer objects is the same data block, and a side effect to the block in one agent will eventually become visible in the other agent." Is the data not instantaneously available to all agents when the buffer is modified? I can't seem to find any other docs to indicate only "eventual" consistency, but my Google-foo on low level JS isn't the best. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 4 replies
-
@wbamberg Do you know the answer to this, or can you suggest someone who might? The text is consistent in that it indicates that updates in one context might take a while to "eventually" become visible in another. Later on it says:
That is a little confusing because as a naïve reader I assume that two things looking at the same thing (shared data) will see any changes instantly. My assumption is that even though the underlying data is the same it is protected by mutexes/semaphore-like thingy to ensure that changes are atomic, and it is not read in a half-way state. So probably the "eventually" means that you might have to wait a bit before you can read some data if it is in the process of being written. |
Beta Was this translation helpful? Give feedback.
@wbamberg Do you know the answer to this, or can you suggest someone who might?
The text is consistent in that it indicates that updates in one context might take a while to "eventually" become visible in another. Later on it says:
That is a little confusing because as a naïve reader I assume that two things looking at the same thing (shared data) will see any changes instantly. My assumption is that even though the underlying data is …