-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Using ThreadPools v2.1.0 and Julia v1.7.1, tasks spawned with @tspawnat can migrate between threads. Tasks spawned this way always spawn on the correct thread as given to the macro, but can migrate to another thread during execution.
There is some existing work to add support for sticky tasks in 1.7+ in this PR JuliaLang/julia#42302 but it will not land for some time.
Are you interested in supporting sticky tasks in 1.7+ in this package? From my testing, it would be a simple change. Just allow the user to set sticky to true here: https://github.com/tro3/ThreadPools.jl/blob/master/src/macros.jl#L270
carstenbauercarstenbauer
Metadata
Metadata
Assignees
Labels
No labels