See these discussion
- Multithreading, preallocation of objects, threadid() and task migration
- Thread safe buffer correctness
- Pattern for managing thread local storage?
One solution appears to be using FLoops.jl
FAQ · FLoops
See these discussion
One solution appears to be using FLoops.jl
FAQ · FLoops