[uWSGI] Threads in lua ?

Alain Meunier deco33 at hotmail.fr
Mon Apr 28 09:28:15 CEST 2014


Thanks,

But forking will be expensive on the long run.

I managed to find another solution : a database driven solution which load different processes according to different values.
I was going the wrong way here.

Bye!

> Date: Fri, 25 Apr 2014 15:44:53 -0500
> From: javier at guerrag.com
> To: uwsgi at lists.unbit.it
> Subject: Re: [uWSGI] Threads in lua ?
> 
> On Fri, Apr 25, 2014 at 9:54 AM, Alain Meunier <deco33 at hotmail.fr> wrote:
> > I read the documentation and read the example codes, but cannot find a way
> > to "spawn" functions to run in parallel in lua.
> >
> > Any hints is greatly welcome !
> 
> 
> you can simply call the fork() function and it will fork, duplicating
> the Lua State.  not sure how that would fit with uWSGI, but i've done
> that in standalone scripts for easy multitasking.
> 
> 
> -- 
> Javier
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20140428/abbff7f7/attachment.html>


More information about the uWSGI mailing list