2014-02-07 42 views

回答

3

子流程不共享相同的GIL。但subprocess.call确实等待子过程被终止。

+0

我可以使用多处理,以防止挂断我的程序的电话? – jtsmith1287

+0

@ jtsmith1287,除非你想等子进程,否则使用['subprocess.Popen'](http://docs.python.org/3/library/subprocess.html#subprocess.Popen)。 – falsetru