lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.


-- 
Javier

Attachment: pgpjWk4PFrObE.pgp
Description: PGP signature