Hi All,

I am working on integrating julia to our software where we will have 
multiple threads (p_threads) within our program.
We need to create multiple independent julia interpreters; one for each 
thread and let them work independently.

I have found following answers in the users groups and they are 
contradictory;

And multiple julia environments are currently not possible.

https://groups.google.com/d/msg/julia-users/9rr5H_qZfKg/iNl2_rpwo_0J   


With this answer from Stefan

It may, however, be easier to have multiple independent Julia interpreters 
> in a single process with separate Julia Core/Base/Main modules. If the 
> interpreters are going to be in different threads, there would have to be 
> locks around access to mutable global structures, but that might be ok. 
> Unlike, say Python, there's no interpreter, so there would be no GIL – once 
> code is generated, it can freely execute without different threads blocking 
> each other. That would actually be a rather interesting project.


https://groups.google.com/d/msg/julia-users/PSdfGfI3eyc/ni6FgzCDvCUJ


What is the correct answers to this problem. 

Also I found that julia supports multi threading as of now according to 
this github issue 
https://github.com/JuliaLang/julia/issues/1790

Does this invalidates the previous answers given in 2014.

Thanks & Regards,

Akila

Reply via email to