On Jul 26, 8:52 am, is un wrote:
> Hi,
>
> Trying the multiprocessing module for the first time, I spent quite a
> bit on making this code run:
>
> from multiprocessing import Process
> import time
>
> def my_process():
> i = 0
> while 1:
> print i
> i += 1
> time.s
En Sun, 26 Jul 2009 02:52:36 -0300, is un
escribió:
Trying the multiprocessing module for the first time, I spent quite a
bit on making this code run:
[...]
The result was not what I expected, it seems like the process restarts
all the time, and the message 'Process started' keeps getting
pri
Me again, fix a type in my question:
So my question is what actually happens when I call p.start()? Is the
*entire* file reloaded under a different module name?
>
> Thanks
> iu2
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Trying the multiprocessing module for the first time, I spent quite a
bit on making this code run:
from multiprocessing import Process
import time
def my_process():
i = 0
while 1:
print i
i += 1
time.sleep(0.5)
p = Process(target=my_process, args=())
p.start