Comment Comment by theptip The second usage is a mut borrow and I think would be incompatible with a read only borrow if they were run in parallel.As the comment eludes to, each spawned thread is implicitly joined if you drop the join handle returned by s::spawn().So in this case the spawned threads run serially. parent theptip 4 years ago
As the comment eludes to, each spawned thread is implicitly joined if you drop the join handle returned by s::spawn().
So in this case the spawned threads run serially.