I have a GUI and this GUI runs some external commands on the command line. While running these command the GUI gets frozen even though I use executor to create a new thread to run these processes.
In one of the posts by mccarl, he mentioned that
if code is directly in a GUI items event handler, then it doesn't matter that you are using an executor to run the tasks in a separate thread/threads because you then do a busy wait for those tasks to complete which still holds up the thread and won't allow your GUI to be responsive.
My code is not directly in it but actually my first call is in it. How else can I do it?
Can you please help me to prevent my GUI to freeze?
The other related question with code samples are here: (The last 3 posts by me are more related with this post)