# Threading pool

**URL:** <https://discourse.julialang.org/t/threading-pool/30481>\
**Category:** General Usage\
**Created:** [October 30, 2019, 9:02am UTC](https://discourse.julialang.org/t/threading-pool/30481 "2019-10-30T09:02:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fracasss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fracasss/32/11018_2.png) [@fracasss](https://discourse.julialang.org/u/fracasss)\
**Post date:** [October 30, 2019, 9:02am UTC](https://discourse.julialang.org/t/threading-pool/30481/1 "2019-10-30T09:02:27Z")

</div>

How can I change the number of threads in my jl script, like the threading pool in Python?

If there is no way to do this, can I set the number of threads Julia will use when Julia starts in VSCode?

I really don’t want to use “export JULIA\_NUM\_THREADS=4”, it’s only effective in a single terminal.

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [October 30, 2019, 9:16am UTC](https://discourse.julialang.org/t/threading-pool/30481/2 "2019-10-30T09:16:37Z")

</div>

You can place the export statement in, e.g., `.bashrc` and have it be active for any terminal you start
