Skip to content

Commit

Permalink
add note leading into atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Feb 5, 2023
1 parent 3ca288a commit cd1070f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/src/manual/multi-threading.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ Note that we do not use buffers based on the `threadid()` i.e. `buffers = zeros(
actually change thread at yield points, known as task migration (docs??), which would introduce data races for such a
buffering approach.

Another option, which would not make sense for a naive sum like this, is the use of atomic operations on variables shared
across all threads.

## Atomic Operations

Julia supports accessing and modifying values *atomically*, that is, in a thread-safe way to avoid
Expand Down

0 comments on commit cd1070f

Please sign in to comment.