[LLVMdev] Preemption with LLVM

A.J. Dunham dunhamaj at muss.cis.mcmaster.ca
Sun Dec 11 16:34:21 PST 2011


Hey all,

I'm investigating LLVM for use for a future project of mine, and I was
wondering whether something is possible.  Specifically, I'm wondering
if there's a way to force preemption of a green thread-style task -
something like Erlang's "processes", where if a task executes for too
long, it is preempted. [1]

My main goal here is to avoid having to write my own virtual machine -
the JVM is, as far as I can tell, not appropriate for when you want to
create hundreds of tasks, and I could not find any other VM that is
appropriate for this type of project (though suggestions are welcome).

Thank you for your time,
--Andrew D

[1] http://erlang.org/pipermail/erlang-questions/2001-April/003132.html



More information about the llvm-dev mailing list