Re: Question related to multiprocessing.Process

2013-01-19 Thread Terry Reedy
On 1/19/2013 12:05 AM, Chris Angelico wrote: On Sat, Jan 19, 2013 at 3:50 PM, Cen Wang wrote: Hi, when I use multiprocessing.Process in this way: from multiprocessing import Process class MyProcess(Process): def __init__(self): Process.__init__(self) def run(self):

Re: Question related to multiprocessing.Process

2013-01-18 Thread Cen Wang
Thanks! It now works! On Saturday, 19 January 2013 13:05:07 UTC+8, Chris Angelico wrote: > On Sat, Jan 19, 2013 at 3:50 PM, Cen Wang wrote: > > > Hi, when I use multiprocessing.Process in this way: > > > > > > from multiprocessing import Process > > > > > > class MyProcess(Process): > > > >

Re: Question related to multiprocessing.Process

2013-01-18 Thread Chris Angelico
On Sat, Jan 19, 2013 at 3:50 PM, Cen Wang wrote: > Hi, when I use multiprocessing.Process in this way: > > from multiprocessing import Process > > class MyProcess(Process): > > def __init__(self): > Process.__init__(self) > > def run(self): > print 'x' > > p = MyProcess() >