Tktinter / os.fork
John Cage untrusted User
cage at cafeconleche.de
Fri May 18 18:29:29 EDT 2001
Hi,
I was trying to write a parallel program for a two-processor
machine. I run into the "global interpreter lock" issue, which
prevents to use multiple processors by python threads.
I solved this problem using os.fork() and shared memory IPC (there
exists an SHM class at Parnassus).
Now, I added a Tktinter interface and run into strange problems. It
seems X11 does not like when a child program inherits sockets. So the
Tkinter.Tk() call has to be done only in one process, which turns a
bit clumsy. Are there better solutions?
J.C.
More information about the Python-list
mailing list