# How to isolate user

**URL:** <https://discourse.julialang.org/t/how-to-isolate-user/97280>\
**Category:** General Usage\
**Created:** [April 9, 2023, 3:41pm UTC](https://discourse.julialang.org/t/how-to-isolate-user/97280 "2023-04-09T15:41:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [April 9, 2023, 3:41pm UTC](https://discourse.julialang.org/t/how-to-isolate-user/97280/1 "2023-04-09T15:41:47Z")

</div>

Hello.  
How to isolate the user?  
Can I run the REPL in a slave process for a user without them having access to the master process’s data?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [April 9, 2023, 4:30pm UTC](https://discourse.julialang.org/t/how-to-isolate-user/97280/2 "2023-04-09T16:30:34Z")

</div>

Yes.

(There are various ways to implement this. For example, Jupyter talks to a Julia process using a ZMQ-based protocol, implemented in IJulia.jl.)

---

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [April 9, 2023, 4:43pm UTC](https://discourse.julialang.org/t/how-to-isolate-user/97280/3 "2023-04-09T16:43:29Z")

</div>

ZMQ or ather is too slow, need a shared memory, but julia haven’t way to synchronize two independent julia process. Ideally, run julia in shared memory. Is it possible?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [April 9, 2023, 5:02pm UTC](https://discourse.julialang.org/t/how-to-isolate-user/97280/4 "2023-04-09T17:02:10Z")

</div>

> [@andrey2185](#):
>
> ZMQ or other is too slow, need a shared memory, but julia haven’t way to synchronize two independent julia process. Ideally, run julia in shared memory. Is it possible?

“Shared memory” and “isolated without access to data” seem like they are in opposition to one another…

Too slow for what? You were talking about a “REPL”, i.e. an interactive process — waiting for user input is usually going to make the latency of something like ZMQ irrelevant. But if you have some more specialized requirements in mind you should explain your application in more detail to get sensible advice.

---

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [April 9, 2023, 5:25pm UTC](https://discourse.julialang.org/t/how-to-isolate-user/97280/5 "2023-04-09T17:25:28Z")

</div>

the user gives access to his memory to the main process, but not vice versa
