# \#threads

**URL:** https://discourse.julialang.org/tag/threads/398.md?page=3

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 4

---

## [Launching with JULIA\_NUM\_THREADS=\<max\>](https://discourse.julialang.org/t/launching-with-julia-num-threads-max/52964)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 6:17pm UTC](https://discourse.julialang.org/t/launching-with-julia-num-threads-max/52964 "2021-01-07T18:17:11Z")

</div>

Is there any drawback to always launching julia with the number of existing cpu cores? Suppose my cpu has 4 cores, and I need to do some non-production stuff like debugging, etc: # cpu with 4 cores firefox & export JUL…

---

## [Fastest way to run a for loop in parallel](https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477)

<div class="topic-metadata">

**Author:** [@rcesarpacheco](https://discourse.julialang.org/u/rcesarpacheco)\
**Replies:** 4\
**Last updated:** [December 27, 2020, 10:58pm UTC](https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477 "2020-12-27T22:58:02Z")

</div>

I am a new user of Julia and I am trying to run a for loop in parallel using .Threads but I don’t know if this is the fastest way that I can do this. The for loop is: res = zeros(length(posicao),2) Threads.@thr…

---

## [Threads.@threads gives unexpected results](https://discourse.julialang.org/t/threads-threads-gives-unexpected-results/49628)

<div class="topic-metadata">

**Author:** [@O\_Julia](https://discourse.julialang.org/u/O_Julia)\
**Replies:** 3\
**Last updated:** [November 5, 2020, 4:20pm UTC](https://discourse.julialang.org/t/threads-threads-gives-unexpected-results/49628 "2020-11-05T16:20:47Z")

</div>

Hi, I am trying to optimize a simple function. I have written both devectorized and vectorized version codes for the function to see which one is faster. Here are the codes: Vectorized: function funvec(m::Int64,data::A…

---

## [Threads.@threads to return results](https://discourse.julialang.org/t/threads-threads-to-return-results/47382)

<div class="topic-metadata">

**Author:** [@arabidopsis](https://discourse.julialang.org/u/arabidopsis)\
**Replies:** 12\
**Last updated:** [September 28, 2020, 8:36am UTC](https://discourse.julialang.org/t/threads-threads-to-return-results/47382 "2020-09-28T08:36:08Z")

</div>

This is a request for “enhancement” I guess. It would be nice if \`Threads.@threads returned the results. Something like: v1, v2, v3 = Threads.@threads for w in \[f1, f2, f3\] w() end

---

## [Correct way of parallelizing on a HPC remote cluster machine](https://discourse.julialang.org/t/correct-way-of-parallelizing-on-a-hpc-remote-cluster-machine/45294)

<div class="topic-metadata">

**Author:** [@trathi](https://discourse.julialang.org/u/trathi)\
**Replies:** 8\
**Last updated:** [August 25, 2020, 3:08am UTC](https://discourse.julialang.org/t/correct-way-of-parallelizing-on-a-hpc-remote-cluster-machine/45294 "2020-08-25T03:08:09Z")

</div>

I want to know what is the correct way of running a julia script (which has some part that requires parallelization) on a HPC cluster remote machine. My PBS script looks like: #!/bin/bash -l #PBS -l walltime=01:00:00,n…

---

## [Questions on parallel programming terminology](https://discourse.julialang.org/t/questions-on-parallel-programming-terminology/38996)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [May 8, 2020, 10:20pm UTC](https://discourse.julialang.org/t/questions-on-parallel-programming-terminology/38996 "2020-05-08T22:20:26Z")

</div>

I am using this week to learn the parallel programming features of the language in more depth. I confess that I am a bit confused with the terminology used throughout the documentation, and would like to ask a few questi…

[Previous page](https://discourse.julialang.org/tag/threads/398.md?match_all_tags=true&page=2&tags%5B%5D=threads)
