Well without knowing what these functions do there isn’t much we can do/say to help you. So I’ll just point you to the Julia manual on using @threads
.
Be sure that you have no data races and avoid using threadid()
. Also you don’t need @sync
in front of @threads
.
For future posts I’ll also point you to this topic