Python+GTK thread question (program freezing)...

C

Christian Seberino

We have a program that uses threads. If we DON'T run the GTK+ GUI
code then multitasking is fine and every thread gets a little CPU time.

If we run a GTK+ GUI in the main parent process/thread then program
freezes.

The PyGTK commands called gtk.threads.thread_enter() and
gtk.gdk.threads_leave() are used to avoid conflicts caused by
two threads writing to GUI at the same time. The disallow/allow
other threads to write to GUI as needed.

It would seem that the problem are with these two commands but
the guys cannot seem to find the problem. As you know, threads
are not the easiest things to debug.

I don't want to think Python threads are unstable.
Are they??

Any ideas at all how to begin to solve this?

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top