# Issues when using multiple threads through Threads.@threads

**URL:** <https://discourse.julialang.org/t/issues-when-using-multiple-threads-through-threads-threads/98758>\
**Category:** General Usage\
**Created:** [May 12, 2023, 6:51pm UTC](https://discourse.julialang.org/t/issues-when-using-multiple-threads-through-threads-threads/98758 "2023-05-12T18:51:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [May 23, 2023, 9:17pm UTC](https://discourse.julialang.org/t/issues-when-using-multiple-threads-through-threads-threads/98758/7 "2023-05-23T21:17:32Z")

</div>

If I understand your question correctly, the right documentation is here: [`Threads.@spawn`](https://docs.julialang.org/en/v1/base/multi-threading/#Base.Threads.@spawn): all it takes is a `wait` statement. Does that help?

Also please remember to format your code: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/issues-when-using-multiple-threads-through-threads-threads/98758)._
