Bidirectional communication through pipes: read/write popen()
Tim Evans
tre17 at student.canterbury.ac.nz
Sat Oct 16 22:08:39 EDT 1999
Looks good. Could this also be done using threads?
Possiblity:
create two threads, one for reading and the other for writing. Then
you can pass strings to the writing thread and get back the buffered
result from the reading thread. This allows interactive communication
without the danger of deadlocks.
Has this been done before or should I give it a go?
--
Tim Evans
More information about the Python-list
mailing list