Skip to content

Commit

Permalink
Doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrm committed Nov 26, 2024
1 parent 2d33b55 commit 8d7ba3f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ws_deque.mli
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ val steal_drop_exn : 'a t -> unit
*)

(** {2 Multicore example}
**Note** that the use of a barrier is only necessary to make the result of
this example interesting by improving the likelihood of parallelism.
Spawning a domain is a costly operation compared to the work actually run on them
here. In practice, you should not use a barrier.
Note: The barrier is used in this example solely to make the results more
interesting by increasing the likelihood of parallelism. Spawning a domain is
a costly operation, especially compared to the relatively small amount of work
being performed here. In practice, using a barrier in this manner is unnecessary.
{@ocaml non-deterministic=command[
# open Saturn.Work_stealing_deque
Expand Down

0 comments on commit 8d7ba3f

Please sign in to comment.