I am running python version 2.7.2 on a linux & windows box. I am running a script which generates child processes using multiprocessing.Process
and wait for it do the desire task & then exit eventually. This works fine on Linux but on windows it is giving and error while doing process.start
.
The following is the sample code snippet :
pobj = Process(target = foo, args=(bar,))
pobj.start()
视窗系统:
WindowsError: [Error 2] The system cannot find the file specified
我做了一些基本分类,发现这一错误来自“C:Python27Libmulti treatmentforking.py”第255号档案线。