Calling Julia functions from a multi-threading scheduler written in C?

As far as I know, embedding multiple instances of Julia (which uses a compiler, not just an interpreter) within a single process is not supported, and perhaps will never be supported. See this thread from 2014.

The best approach is probably to let Julia “drive” — Julia already has a scheduler for multi-threaded code, so you could spawn Julia threads that call your C functions and pass them callback functions.

2 Likes