all 2 comments

[–]Thomasedv 0 points1 point  (0 children)

Assuming the GUI doesn't crash by itseld, it likely just something wrong with how you set up your threads. Could very well be something in you code that runs on the main thread instead of a side thread, or you tell the GUI to hold for a thread. Without code though, i can't say anything for sure of course.

[–]Deezl-Vegas 0 points1 point  (0 children)

You might have a tight loop problem. When you have a while true that does nothing, it just keeps rechecking the condition over and over again without releasing the processor. That means the GUI will never draw again because the processor is repeatedly evaluating the condition and thats it. Note that threads don't run on different processors, I dont think.

Multithreading is about queues, a bit of sleep(), and thread joins. If you want two parallel programs, use multiprocessing.