For pinning threads to cores (rather than tasks to threads), you should probably use [ANN] Announcing ThreadPinning.jl