[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: RES: package system modification (module loaders)
- From: Klaus Ripke <paul-lua@...>
- Date: Thu, 20 Jan 2005 13:20:37 +0100
On Thursday 20 January 2005 09:44, skaller wrote:
> That is, you need to *schedule* coroutines that block,
> so they're resumed when blocking operations will not block.
> In other words you need to do just what an operating
> system does
... or is supposed to do.
If I get you right, however, you agree that doing this scheduling
oneself instead of using OS supplied threads is the way to go
(and you are doing it in felix)?
(besides virtually every implementation being broken in some ways)
also have hefty limitations by design. One of them is stack usage with
a typical (although usually customizable) 8MB per thread out of 1G,
so you hit the roof at a mere 128 threads -- which is way to low for
So everything is fine with non-blocking lua sockets and select,