is socket thread safe?

e2wugui at gmail.com e2wugui at gmail.com
Tue Feb 14 05:24:39 EST 2006


thread1:
    while 1:
        buf = s.read()
        process(buf)

thread2:
    while 1:
        buf = getdata()
        s.write(buf)




More information about the Python-list mailing list