[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Socket
- From: gary ng <garyng2000@...>
- Date: Sat, 21 Jul 2007 06:35:47 -0700 (PDT)
--- Javier Guerra Giraldez <firstname.lastname@example.org> wrote:
> since i couldn't find any general-enough asyncIO
> library, i settled on
> the concept of helper threads, which resulted on HTT
> (Helper Threads
> Toolkit). i included as examples TCP and file I/O,
> with a simple (and
> short) coroutine scheduler.
> the biggest downside is that it uses threads, and
> not everybody likes it
What I found about HTT is that it seems that I need to
write C routine in order to use it, if my "possible to
block" process is not just stream IO(like my example
of say I make use of luasql and issue a SQL query
which got blocked on the server side, and in that
case, I don't even has the chance to yield from lua).
And thread seems to be a natural solution for this
situation. Or like PA, just multiplex a seperate
process which in general is isolated and
self-contained(typical web request like).
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.