print(resultspam eggs ham the equivalent os spawn calls achieve the same effectwith slightly more complex call signature that provides more control over the way the program is launchedos spawnv(os p_waitr' :\python \python'('python''makewords py')spam eggs ham os spawnl(os p_nowaitr' :\python \python''python''makewords py' spam eggs ham the spawn calls are also much like forking programs in unix they don' actually copy the calling process (so shared descriptor operations won' work)but they can be used to start program running completely independent of the calling programeven on windows the script in example - makes the similarity to unix programming patterns more obvious it launches program with fork/exec combination on unix-like platforms (including cygwin)or an os spawnv call on windows example - pp \system\processes\spawnv py ""start up copies of child py running in paralleluse spawnv to launch program on windows (like fork+exec)p_overlay replacesp_detach makes child stdout go nowhereor use portable subprocess or multiprocessing options today""import ossys for in range( )if sys platform[: ='win'pypath sys executable os spawnv(os p_nowaitpypath('python''child py'str( ))elsepid os fork(if pid ! print('process % spawnedpidelseos execlp('python''python''child py'str( )print('main process exiting 'to make sense of these examplesyou have to understand the arguments being passed to the spawn calls in this scriptwe call os spawnv with process mode flagthe full directory path to the python interpreterand tuple of strings representing the shell command line with which to start new program the path to the python interpreter other ways to start programs