# Thread-safe array building

**URL:** https://discourse.julialang.org/t/thread-safe-array-building/3275
**Category:** General Usage
**Tags:** multithreading
**Created:** [April 19, 2017, 3:08am UTC](https://discourse.julialang.org/t/thread-safe-array-building/3275 "2017-04-19T03:08:23Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [April 19, 2017, 3:48am UTC](https://discourse.julialang.org/t/thread-safe-array-building/3275/2 "2017-04-19T03:48:42Z")

</div>

Create `nthreads()` number of arrays and push to them based on `threadid()`.

---

_[View the full topic](https://discourse.julialang.org/t/thread-safe-array-building/3275)._
