# How to create SharedArrays on other workers

**URL:** <https://discourse.julialang.org/t/how-to-create-sharedarrays-on-other-workers/33619>\
**Category:** Performance\
**Created:** [January 21, 2020, 12:28pm UTC](https://discourse.julialang.org/t/how-to-create-sharedarrays-on-other-workers/33619 "2020-01-21T12:28:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [January 21, 2020, 1:51pm UTC](https://discourse.julialang.org/t/how-to-create-sharedarrays-on-other-workers/33619/3 "2020-01-21T13:51:53Z")

</div>

Check this thread:

> [@Should a view of a SharedArray be also shared between workers?](https://discourse.julialang.org/t/should-a-view-of-a-sharedarray-be-also-shared-between-workers/33580):
>
> Consider the following simple example, where we try to fill a view of a SharedArray on a worker (I’ve tested it on julia 1.1.0): using Distributed w = addprocs(1)[] using SharedArrays function idid!(v) for i=1:length(v) v[i] = i end end sha = SharedArray{Float64}(10) shav = @view sha[1:5] @spawnat w idid!(shav) sha The result that we get is: sha 10-element SharedArray{Float64,1}: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 As we see, nothing happens, which impli…

---

_[View the full topic](https://discourse.julialang.org/t/how-to-create-sharedarrays-on-other-workers/33619)._
