On Tue, Jul 29, 2014 at 12:33 PM, Joseph Naegele <joseph.naeg...@gmail.com>
wrote:

> Is it safe to allow code in multiple threads access the Julia runtime
> using the C-API?


It is currently not safe – Julia is not reentrant. This will change when we
add threading support (already in progress), but even then, it's not yet
clear if it will be possible to just arbitrarily call Julia code from C++
threads. There's a lot of crazy things that need to be done to make
threading work reliably and conveniently, especially in the presence of
garbage collection, which will need stop all threads by signalling them so
that it can mark and sweep while nothing is being changed.

Reply via email to