Question related to multiprocessing.Process

Cen Wang iwarobots at
Sat Jan 19 05:50:18 CET 2013

Hi, when I use multiprocessing.Process in this way:

from multiprocessing import Process

class MyProcess(Process):
    def __init__(self):
    def run(self):
        print 'x'

p = MyProcess()

It just keeps printing 'x' on my command prompt and does not end. But I think MyProcess should print an 'x' and then terminate. I don't why this is happening. I'm using Win7 64 bit, Python 2.7.3. Any idea? Thanks in advance.

More information about the Python-list mailing list