I do not have much experience with LLVM or Erlang.
But I implemented such a system in langauge programming called PARLANSE. Yes, making context switches cheap is hard.
More on this SO answer: fooobar.com/questions/35330 /.
What little knowledge I have in LLVM may seem difficult. Which you need to generate context switching code. I'm not sure LLVM supports this directly. This, of course, is not what is easy to do when generating pure C-code, because language primitives do not allow you to get into the machine / thread state very well.
he turned over, so Klang, trying to support the capabilities of C ++ 14, must definitely stumble on the "C ++ native" streams. There must be support for context switching so that this can be done, so maybe someone has already or already dealt with this problem.
Ira Baxter
source share