From 20fc8fb49df6a1360049835a5f678ec92302dae1 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Sun, 13 Feb 2022 14:19:23 -0500 Subject: [PATCH] put default schedule first in `@threads` docstring --- base/threadingconstructs.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/threadingconstructs.jl b/base/threadingconstructs.jl index 74234c48bf242..9ed416caec2a6 100644 --- a/base/threadingconstructs.jl +++ b/base/threadingconstructs.jl @@ -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.