[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A question about event driven paradigm and helper/worker thread
- From: Javier Guerra Giraldez <javier@...>
- Date: Sat, 25 Aug 2007 16:43:27 -0500
On Wednesday 15 August 2007, Javier Guerra Giraldez wrote:
> you create as many helper threds as you want, and all that share the
> same input queue colaborate on handling the tasks you put there.
> the included scheduler uses this to separate the creation of helper
> threads and lua 'threads'.
I just realised that the docs didn't mention this feature in the scheduler.
i've updated it in CVS.
the idea is that you can create named pools of helper threads, and when you
create a new Lua thread, you can specify which pool it should use.
that way, you can create a pool of say, 20 helper threads, and then thousands
of Lua threads (one per client) use them. no new C thread would be created
if you don't want.
Description: PGP signature