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

Fix documentation: thread pool of main thread #53388

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
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
8 changes: 6 additions & 2 deletions doc/src/manual/multi-threading.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ julia> using Base.Threads
julia> nthreadpools()
2

julia> threadpool()
:default
julia> threadpool() # the main thread is in the interactive thread pool
:interactive

julia> nthreads(:default)
3
Expand All @@ -133,6 +133,10 @@ julia> nthreads()
The zero-argument version of `nthreads` returns the number of threads
in the default pool.

!!! note
Depending on whether Julia has been started with interactive threads,
the main thread is either in the default or interactive thread pool.

Either or both numbers can be replaced with the word `auto`, which causes
Julia to choose a reasonable default.

Expand Down