
March 8, 2008
1:36 a.m.
Phil Mayers ha scritto:
Mike Pelletier wrote:
On Fri, Mar 7, 2008 at 8:36 AM, Phil Mayers <p.mayers@imperial.ac.uk> wrote:
If you fork a python interpreter, you should very quickly replace the process with exec.
Does fork+exec have any advantages over spawn?
If you mean "os.spawnXX" I think that, under Unix, those *are* fork & exec, so no - they're identical.
I don't think there's a native unix syscall "spawn".
http://www.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html Note that the page may require registration to be viewed.
[...]
Manlio Perillo