Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

raingloom

Members
  • Content Count

    7
  • Joined

  • Last visited

Posts posted by raingloom

  1. 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?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.