We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5934b45 commit 47a05b8Copy full SHA for 47a05b8
doc/src/manual/multi-threading.md
@@ -116,8 +116,8 @@ julia> using Base.Threads
116
julia> nthreadpools()
117
2
118
119
-julia> threadpool()
120
-:default
+julia> threadpool() # the main thread is in the interactive thread pool
+:interactive
121
122
julia> nthreads(:default)
123
3
@@ -133,6 +133,10 @@ julia> nthreads()
133
The zero-argument version of `nthreads` returns the number of threads
134
in the default pool.
135
136
+!!! note
137
+ Depending on whether Julia has been started with interactive threads,
138
+ the main thread is either in the default or interactive thread pool.
139
+
140
Either or both numbers can be replaced with the word `auto`, which causes
141
Julia to choose a reasonable default.
142
0 commit comments