raingloom 0 Posted May 18, 2015 Share Posted May 18, 2015 So, I know that true parallelization is not possible with Lua's coroutines, but I thought it would be fun to implement something like a server with multiple users. The basic idea is that the kernel runs coroutines according to priorities (just like in real life) and maybe "punishes" threads that take too long to yield (it runs them less often). This is all fine and dandy, but it would also be nice to run non-blocking threads while a thread is waiting on a blocking operation (events). That's where the problems arise. Waiting on pullSignal would blocks other theads, even with a timeout. Any ideas to overcome this? Quote Link to post Share on other sites
natedogith1 4 Posted May 19, 2015 Share Posted May 19, 2015 You could probably do something with overriding pullSignal Quote Link to post Share on other sites
bioscreeper 0 Posted May 20, 2023 Share Posted May 20, 2023 event.pull, mayme? Quote Link to post Share on other sites