We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the REPL (with JULIA_NUM_THREADS=6)
JULIA_NUM_THREADS=6
Threads.nthreads(:default) # gives 6 count(i -> threadpool(i) == :default, 1:Threads.maxthreadid()) # gives 6
as expected. However, in Jupyter (IJulia) I get
Threads.nthreads(:default) # gives 6 count(i -> threadpool(i) == :default, 1:Threads.maxthreadid()) # gives 7 ?!?!
I assume that the extra thread is the heartbeat thread. But in any case, this seems inconsistent. Upstream issue?
The text was updated successfully, but these errors were encountered:
Yup.
I'm not sure if there is a way to prevent Julia from claiming ownership of this thread? See also JuliaLang/julia#47196.
Or maybe Threads.nthreads should not count foreign threads.
Threads.nthreads
Sorry, something went wrong.
No branches or pull requests
In the REPL (with
JULIA_NUM_THREADS=6
)as expected. However, in Jupyter (IJulia) I get
I assume that the extra thread is the heartbeat thread. But in any case, this seems inconsistent. Upstream issue?
The text was updated successfully, but these errors were encountered: