Suppose I have 10 calculations distributed in 5 workers, and now worker 2 is running task 1. Isn’t it possible that calculation 1 yields and calculation 6 kicks in in worker 2 before task 1 finishes? That will cause a problem even if myid()
is stable.
Or is it something like @spawnat p expr
does not wrap exp
in a task and will never yield before expr
finishes?