The usual practice is to show the progress window (with a progress bar) in the UI thread and update the progress from the worker thread.
I have a lot of long operations which are started and run in the GUI thread itself(which temporarily freeze the GUI). The requirement is to show the progress bar for all existing long operations. The usual solution would be to move the long operations as threads and update the progress from there. But i am not sure about the thread safety of those long operations.
Is there a way where we show the progress window in another thread (so it doesn't freeze) and then update the progress from the main GUI thread itself?