On 01/-10/-28163 02:59 PM, 守株待兔 wrote:
please see my code:
import os
import threading
print threading.currentThread()
print "i am parent ",os.getpid()
ret = os.fork()
print "i am here",os.getpid()
print threading.currentThread()
if ret == 0:
print threading.currentThread()
els
On Saturday, August 13, 2011 2:09:55 AM UTC-7, 守株待兔 wrote:
> please see my code:
> import os
> import threading
> print threading.currentThread()
> print "i am parent ",os.getpid()
> ret = os.fork()
> print "i am here",os.getpid()
> print threading.currentThread()
> if ret == 0:
>
On Aug 13, 11:09 am, "守株待兔" <1248283...@qq.com> wrote:
> please see my code:
> import os
> import threading
> print threading.currentThread()
> print "i am parent ",os.getpid()
> ret = os.fork()
> print "i am here",os.getpid()
> print threading.currentThread()
> if ret == 0:
> p
please see my code:
import os
import threading
print threading.currentThread()
print "i am parent ",os.getpid()
ret = os.fork()
print "i am here",os.getpid()
print threading.currentThread()
if ret == 0:
print threading.currentThread()
else:
os.wait()
print thre
En Sun, 28 Dec 2008 10:44:11 -0200, nemo escribió:
My code like this raise an EOFError, It happens if I use the Process
module,
while, if I use thread.start_new_thread(ftp.pwd,()), it seems works
well.
And I wondered why.
from ftplib import FTP
import thread
from multiprocessing import Process
Hi all,
My code like this raise an EOFError, It happens if I use the Process
module,
while, if I use thread.start_new_thread(ftp.pwd,()), it seems works
well.
And I wondered why.
from ftplib import FTP
import thread
from multiprocessing import Process
if __name__ == '__main__':
ftp = FTP('loc