# Threading behavior on multiple-cpu systems

**URL:** <https://discourse.julialang.org/t/threading-behavior-on-multiple-cpu-systems/111780>\
**Category:** Performance\
**Tags:** parallel, multithreading\
**Created:** [March 18, 2024, 4:19pm UTC](https://discourse.julialang.org/t/threading-behavior-on-multiple-cpu-systems/111780 "2024-03-18T16:19:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astro-kevin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/astro-kevin/32/43342_2.png) [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Post date:** [March 18, 2024, 4:19pm UTC](https://discourse.julialang.org/t/threading-behavior-on-multiple-cpu-systems/111780/1 "2024-03-18T16:19:41Z")

</div>

I have written some code which runs faster on a system with 2x16 core intel chip than a system with a 4x16 core AMD cpu. The AMD cpu is of a slightly slower clockspeed, and I have ensured my `Threading.@threads` loop has more than 64 items. I have found that the total runtime using the intel chip is around 60% that of the AMD chip. Does anyone have any explanation for this, or the behavior of threading on multiple CPUs?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [March 18, 2024, 4:53pm UTC](https://discourse.julialang.org/t/threading-behavior-on-multiple-cpu-systems/111780/2 "2024-03-18T16:53:09Z")

</div>

It’s very hard to say what could be the cause of this without knowing what the code does, but this could be explained by better caching behavior on the intel chip.
