|
As we know it's possible to use lua_resume() with lua_sethook() to get cooperative timeslicing of sorts for a Lua thread, and even implement multiple threads with a Lua script. Of course it's not particularly efficient, and the execution of the global state can't be timesliced in this way.