-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Hi, I'm not sure if this is expected but this is the behaviour I'm seeing:
julia> ThreadPools.@tspawnat 1 twith(ThreadPools.StaticPool(3:8)) do pool
@tthreads pool for i in 1:8
sleep(0.1);println(i, Threads.threadid())
end
end
Task (runnable) @0x0000000132cab850
78
13
35
46
24
57
88
67
julia> ThreadPools.@tspawnat 2 twith(ThreadPools.StaticPool(3:8)) do pool
@tthreads pool for i in 1:8
sleep(0.1);println(i, Threads.threadid())
end
end
Task (runnable) @0x0000000132e96410
12
22
32
42
52
62
72
82When spawning to thread 1, all of thread 3:8 can be used by the pool, but when spawning to thread 2 only thread 2 is used. Ideally I'd like to spawn to thread 2, and then use threads 3:8.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels