# Julia multiprocessing is not using fork in Linux?

**URL:** https://discourse.julialang.org/t/julia-multiprocessing-is-not-using-fork-in-linux/26513
**Category:** Julia at Scale
**Tags:** question
**Created:** [July 18, 2019, 7:15pm UTC](https://discourse.julialang.org/t/julia-multiprocessing-is-not-using-fork-in-linux/26513 "2019-07-18T19:15:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jwu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jwu/32/3775_2.png) [@jwu](https://discourse.julialang.org/u/jwu)
#### Post date: [July 18, 2019, 7:15pm UTC](https://discourse.julialang.org/t/julia-multiprocessing-is-not-using-fork-in-linux/26513/1 "2019-07-18T19:15:46Z")

</div>

I am not sure I understand it correctly or not. In python multiprocessing, it is using fork in Linux, so the children processes shares memory directly. The memory sharing will not change if you are not changing it since it uses `copy-and-update` rule. This memory sharing really can increase memory efficiency and also performance.

In Julia, it seems that the children processes are not using fork? As a result, we have to use `@everywhere` to execute the same code in all the processes?

---

<div class="post-metadata">

### Author: ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)
#### Post date: [July 19, 2019, 12:45am UTC](https://discourse.julialang.org/t/julia-multiprocessing-is-not-using-fork-in-linux/26513/2 "2019-07-19T00:45:12Z")

</div>

Yes. I suspect it’s because the multiprocessing can also be across machines and they wanted the behavior to be the same in both cases. Threads are high on the list of priorities so I suspect that will be released “soon” which will give you the shared memory.

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [July 19, 2019, 1:39am UTC](https://discourse.julialang.org/t/julia-multiprocessing-is-not-using-fork-in-linux/26513/3 "2019-07-19T01:39:45Z")

</div>

Julia also supports multithreading:

[https://docs.julialang.org/en/v1/manual/parallel-computing/#Multi-Threading-(Experimental)-1](https://docs.julialang.org/en/v1/manual/parallel-computing/#Multi-Threading-(Experimental)-1)

It works now and it’ll get much better in version 1.3.
