[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Cloning "preforked" Lua state
- From: David Kastrup <dak@...>
- Date: Sun, 06 Sep 2009 20:09:08 +0200
Asko Kauppi <email@example.com> writes:
> Maybe this comes to myself not being so at ease with coroutine
> coding. Maybe the best way to do the server I've been involved with is
> using coroutines.
Consider coroutines as pretty much the same as subroutines. The
principal difference is that they don't give up stack, instruction
pointer and local variables (the dynamic execution context) while
returning execution control and return values. They pass the buck
without passing away.