How to do Multithreading the right way?

This thread has lots of good info.
PSA: Thread-local state is no longer recommended; Common misconceptions about threadid() and nthreads() - General Usage - Julia Programming Language (julialang.org)