Skip to content

Clarification about the wording in SharedArrayBuffer #605

Answered by hamishwillee
Jumbub asked this question in Content
Discussion options

You must be logged in to vote

@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:

Shared memory can be created and updated simultaneously in workers or the main thread. Depending on the system (the CPU, the OS, the Browser) it can take a while until the change is propagated to all contexts. To synchronize, atomic operations are needed.

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 …

Replies: 0 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@wbamberg
Comment options

@Jumbub
Comment options

@hamishwillee
Comment options

Answer selected by Jumbub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants