Skip to content

Commit

Permalink
Fix documentation: thread pool of main thread (JuliaLang#53388)
Browse files Browse the repository at this point in the history
See
JuliaLang#53217 (comment)

(cherry picked from commit 8425b0e)
  • Loading branch information
carstenbauer authored and Drvi committed Jun 7, 2024
1 parent 0cf9515 commit fe88eb8
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit fe88eb8

Please sign in to comment.