Skip to content

Conversation

@pbayer
Copy link
Contributor

@pbayer pbayer commented Jan 18, 2021

I try to make clearer that the task is scheduled to run on an available thread. This makes an important difference since between the creation of the task and its allocation to a thread may be a time delay.

see: discussion on Discourse

I try to make clearer that the task **is scheduled** to run on an available thread. This makes an important difference since between the creation of the task and its allocation to a thread may be a time delay.

see: [discussion on Discourse](https://discourse.julialang.org/t/looking-for-code-to-solve-surely-common-embarrassing-parallelism-multithreading-use-case/53527/9)
@JeffBezanson JeffBezanson added docs This change adds or pertains to documentation multithreading Base.Threads and related functionality labels Jan 19, 2021
Create a [`Task`](@ref) and [`schedule`](@ref) it to run on any available thread.
The task is allocated to a thread after it becomes available.
To wait for the task to finish, call [`wait`](@ref) on the result of this macro, or
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the trailing whitespace here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

trailing whitespace removed
Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com>
@JeffBezanson JeffBezanson merged commit c19d389 into JuliaLang:master Jan 20, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
I try to make clearer that the task **is scheduled** to run on an available thread. This makes an important difference since between the creation of the task and its allocation to a thread may be a time delay.

see: [discussion on Discourse](https://discourse.julialang.org/t/looking-for-code-to-solve-surely-common-embarrassing-parallelism-multithreading-use-case/53527/9)
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
I try to make clearer that the task **is scheduled** to run on an available thread. This makes an important difference since between the creation of the task and its allocation to a thread may be a time delay.

see: [discussion on Discourse](https://discourse.julialang.org/t/looking-for-code-to-solve-surely-common-embarrassing-parallelism-multithreading-use-case/53527/9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This change adds or pertains to documentation multithreading Base.Threads and related functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants