lua-users home
lua-l archive

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

--- Nathan Youngman <> wrote:

> Asko Kauppi wrote:
> > Please try it together with Lua Lanes for
> multithreading. Lanes  
> > should take care of all the threading stuff,
> seamlessly (no locking).
> Thanks for the suggestion Asko. I just went through
> the comparison of  
> threading kits:
Thanks for the pointer.

I don't see a comparision between lua lane and luatask
as both seem to be using similar approach(i.e.
independent lua state with message passing running in
seperate OS threads). 

Another issue which I don't see people mentioning is
how to properly clean up these lua states. My
experience with 'rings' is that for certain third
party modules(say the luasql.mysql binding), it is
impossible to properly clean up a lua state(memory
leaks). So both lua lane and luatask if used in the
erlang manner(repetitively create and destroy states
like function calls), would have issues for writing
daemon process. 

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around