# Fastest way to run a for loop in parallel

**URL:** https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477
**Category:** Performance
**Tags:** multithreading, threads
**Created:** [December 27, 2020, 9:31pm UTC](https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477 "2020-12-27T21:31:12Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Karajan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/karajan/32/8545_2.png) [@Karajan](https://discourse.julialang.org/u/Karajan)
#### Post date: [December 27, 2020, 10:01pm UTC](https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477/3 "2020-12-27T22:01:20Z")

</div>

You can look at the load of your processor. If it struggles somewhat I found that using `ThreadsX.map!` sometimes helps.

---

_[View the full topic](https://discourse.julialang.org/t/fastest-way-to-run-a-for-loop-in-parallel/52477)._
