- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.7k
Closed
Description
The CLI help for -t states:
-t, --threads {auto|N[,auto|M]}
       Enable N[+M] threads; N threads are assigned to the `default`
       threadpool, and if M is specified, M threads are assigned to the
       `interactive` threadpool...
So I would expect to be able to spawn a task on the interactive thread when starting Julia with -t1,1 (one default and one interactive thread). But this fails on Julia 1.9.0-beta4:
$ julia +beta -q -t1,1
julia> fetch(Threads.@spawn :interactive Threads.threadpool())
:default
It works when starting Julia with -t2,1 (two default and one interactive thread):
$ julia +beta -q -t2,1
julia> fetch(Threads.@spawn :interactive Threads.threadpool())
:interactive
I think this is a bug.
julia> versioninfo()
Julia Version 1.9.0-beta4
Commit b75ddb787ff (2023-02-07 21:53 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 2 on 8 virtual corescarstenbauer
Metadata
Metadata
Assignees
Labels
No labels