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: [email protected] > To: [email protected] > Subject: Re: [uWSGI] Threads in lua ? > > On Fri, Apr 25, 2014 at 9:54 AM, Alain Meunier <[email protected]> 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 > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
