# Threads.@threads with ONE thread: how to remove the overhead?

**URL:** <https://discourse.julialang.org/t/threads-threads-with-one-thread-how-to-remove-the-overhead/58435>\
**Category:** Performance\
**Tags:** threads\
**Created:** [April 2, 2021, 9:48am UTC](https://discourse.julialang.org/t/threads-threads-with-one-thread-how-to-remove-the-overhead/58435 "2021-04-02T09:48:35Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Elrod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elrod/32/22461_2.png) [@Elrod](https://discourse.julialang.org/u/Elrod)\
**Post date:** [April 2, 2021, 4:56pm UTC](https://discourse.julialang.org/t/threads-threads-with-one-thread-how-to-remove-the-overhead/58435/9 "2021-04-02T16:56:26Z")

</div>

> [@Shuhua](#):
>
> The behavior of Julia differs from Python here: I thought the above `x` remains unchanged.

In case you’d like to read more, [here](https://discourse.julialang.org/t/referencing-local-variable-before-assignment-results-in-unexpected-behavior/58088) is a recent thread about this behavior (and the difference vs Python).

---

_[View the full topic](https://discourse.julialang.org/t/threads-threads-with-one-thread-how-to-remove-the-overhead/58435)._
