Skip to content

Commit

Permalink
put default schedule first in @threads docstring (#44163)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Feb 14, 2022
1 parent 3cfe5ca commit 2842fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/threadingconstructs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ For example, the above conditions imply that:
- Write only to locations not shared across iterations (unless a lock or atomic operation is used).
Schedule options are:
- `:dynamic` (default) will schedule iterations dynamically to available worker threads,
assuming that the workload for each iteration is uniform.
- `:static` creates one task per thread and divides the iterations equally among
them, assigning each task specifically to each thread.
Specifying `:static` is an error if used from inside another `@threads` loop
or from a thread other than 1.
- `:dynamic` (default) will schedule iterations dynamically to available worker threads,
assuming that the workload for each iteration is uniform.
Without the scheduler argument, the exact scheduling is unspecified and varies across Julia releases.
Expand Down

0 comments on commit 2842fe1

Please sign in to comment.