[uWSGI] Threads in lua ?
deco33 at hotmail.fr
Mon Apr 28 09:28:15 CEST 2014
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.
> 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.
> uWSGI mailing list
> uWSGI at lists.unbit.it
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the uWSGI