# Poor performance on cluster multithreading

**URL:** <https://discourse.julialang.org/t/poor-performance-on-cluster-multithreading/12248>\
**Category:** Performance\
**Tags:** performance, parallel, multithreading, cluster\
**Created:** [July 8, 2018, 1:09pm UTC](https://discourse.julialang.org/t/poor-performance-on-cluster-multithreading/12248 "2018-07-08T13:09:12Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [July 8, 2018, 9:15pm UTC](https://discourse.julialang.org/t/poor-performance-on-cluster-multithreading/12248/17 "2018-07-08T21:15:42Z")

</div>

> [@Elrod](#):
>
> const twisters = [MersenneTwister() for i ∈ 1:Threads.nthreads()];

This will actually have false sharing. You need to allocate the rng from each threads.

---

_[View the full topic](https://discourse.julialang.org/t/poor-performance-on-cluster-multithreading/12248)._
