lua-users home
lua-l archive

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



On 17 may 2005, at 2:02 AM, Klaus Ripke wrote:
For requests expected to be "very slow",
one might also consider "heavy weight threads" a.k.a. processes.
On current unixes, fork is not that expensive (see e.g. fnord webserver).
For win, things are much more difficult, but alas ...

hadn't thought of that!

and i should, in fact my very first Lua project (horrendously un-luaish, but still working in production servers) used Lua just as a 'better scripts than shell', for that i wrote some c-like fork(), pipes and wait(), so i could spawn background proceses, while managing it's stdin/stdout/stderr

i'm sure there are better libraries for that somewhere....

--
Javier