Starting a process as a subprocess in Python
<p>I am writing a program that uses multiple worker processes (a pre-forking model) with the following code.</p>

<pre><code>from  multiprocessing import Process
for i in range(0,3):
    Process(target=worker, args=(i,)).start()
</code></pre>

<p>I use Windows. I notice that they are run as separate processes when I wanted them to start as <strong>subprocesses</strong> instead. How do I make them subprocesses of the main process?</p>

<p>I am hesitant to use the <em>subprocess</em> module as it seems suited to run external processes (as far as I have used it).</p>

<hr>

<p><strong>An update</strong>: It seems Windows does not launch new processes as sub-processes. Python doesnt support getppid() (get parent's PID) in Windows.</p>
