News for hackers. Stuff that matters.
Re:Building a Minimalistic Virtual Machine by narag on Saturday February 25, 2023 @04:42PM (#34940763)
I have experience as a user, implementation is way over my head. Depending on the minimum host supported, you could only use lightweight threads or write a scheduler. IIRC, JVM started using its own thread implementation and later used the one provided by the host OS, when available.

Best of luck!

Re:Building a Minimalistic Virtual Machine by maxime_cb on Saturday February 25, 2023 @05:04PM (#34940912)
At the moment I have an event-driven system where you can set up callbacks and timers. It's not green threads but it makes it easy to have multiple different update events running at different rates, for example: https://github.com/maximecb/uvm/blob/main/ncc/examples/attac...