Threading pool

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.

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

1 Like