Closed
Description
Depending on whether Julia is started with or without interactive threads, the main thread is in either the interactive or default threadpool:
cb@mm ~
➜ julia -t 3 -E 'Threads.threadpool()'
:default
cb@mm ~
➜ julia -t 3,1 -E 'Threads.threadpool()'
:interactive
I find this surprising. Is this intentional? If so, what is the reasoning behind this?
Note that this is wrongly documented since 1.9 (I created a doc fix PR).
Came up in this issue and also seems to be causing problems (see discourse.julialang.org/t/what-is-julia-doing-with-your-threads/110052/20 and the related issue #53269).