Unexpected behavior possibly due to how scope and multithreading works on 1.4.2

This is Race condition caused by variable scope getting lifted from a multithreaded context · Issue #14948 · JuliaLang/julia · GitHub

The n after the loop lifts the scope of n so you now have a race condition.

3 Likes