Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a :dynamic scheduling option for Threads.@threads #43919

Merged
merged 22 commits into from
Feb 12, 2022
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update base/threadingconstructs.jl
  • Loading branch information
IanButterworth authored Feb 4, 2022
commit b9ab598f0897bdd801c349c7160a6225ebda9980
2 changes: 1 addition & 1 deletion base/threadingconstructs.jl
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ The `schedule` argument can be used to request a particular scheduling policy.

Except for `:static` scheduling, how the iterations are assigned to tasks, and how the tasks
are assigned to the worker threads is undefined. The exact assignments can be different
for each execution. The scheduling option shall be considered a hint. The loop body
for each execution. The scheduling option is a hint. The loop body
code (including any code transitively called from it) must not make assumptions about the distribution of iterations to tasks or the worker
thread in which they are executed. The loop body for each iteration must be able to
make forward progress independent of other iterations and be free from data races.