# Overhead of \`Threads.@threads\`

**URL:** <https://discourse.julialang.org/t/overhead-of-threads-threads/53964>\
**Category:** Performance\
**Tags:** question, multithreading\
**Created:** [January 26, 2021, 10:04am UTC](https://discourse.julialang.org/t/overhead-of-threads-threads/53964 "2021-01-26T10:04:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [January 26, 2021, 10:56am UTC](https://discourse.julialang.org/t/overhead-of-threads-threads/53964/2 "2021-01-26T10:56:59Z")

</div>

Did you benchmark to see whether the overhead is something you even need to worry about?

I once did this PR [https://github.com/JuliaLang/julia/pull/33964](https://github.com/JuliaLang/julia/pull/33964), which made `@threads` a no-op if `nthreads()==1`. But apparently that was not save but no work-around was suggested. The road-map PR is linked in that PR of mine.

---

_[View the full topic](https://discourse.julialang.org/t/overhead-of-threads-threads/53964)._
