# Mutlithread functions within for loop

**URL:** <https://discourse.julialang.org/t/mutlithread-functions-within-for-loop/108577>\
**Category:** General Usage\
**Tags:** multithreading\
**Created:** [January 9, 2024, 5:55pm UTC](https://discourse.julialang.org/t/mutlithread-functions-within-for-loop/108577 "2024-01-09T17:55:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [January 9, 2024, 8:13pm UTC](https://discourse.julialang.org/t/mutlithread-functions-within-for-loop/108577/3 "2024-01-09T20:13:40Z")

</div>

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`](https://docs.julialang.org/en/v1/manual/multi-threading/#Using-@threads-without-data-races).

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 🙂

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/mutlithread-functions-within-for-loop/108577)._
