[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: occasional threading in lua
- From: Javier Guerra <javier@...>
- Date: Fri, 17 Nov 2006 04:41:55 -0500
On Friday 17 November 2006 12:52 am, Russ Cox wrote:
> I like Lua's coroutine model a lot.
> But sometimes you just need to run on multiple CPUs.
> I couldn't find any interfaces that were very satisfying.
> In particular, I don't want to give up the simplicity of
> cooperative scheduling. I'd like to be able to have certain
> C calls run in parallel with the VM, but otherwise keep
> the VM single-threaded. So I can offload I/O and computation
> into these parallel C calls but keep the usual Lua model.
check my Helper Threads Toolkit (http://luaforge.net/forum/?group_id=163).
it's a general framework that lets you write C modules that run in a separate
Description: PGP signature