improve UI responsivenes / use worker threads
Bug #579332 reported by
Onkar Shinde
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnusim8085 |
New
|
Wishlist
|
Unassigned |
Bug Description
Apparently, the UI code is currently being run in the same thread as the rest of the simulator, this is problematic as it may result in a lack of responsiveness of the GUI, it would be good if either the UI code could be put into a corresponding worker thread, or alternatively the simulator core itself
To post a comment you must log in.
Logged In: NO
a locked up GUI is only likely to become a problem once you have an infinite loop, i.e. because you forget to put a HLT statement into your code, otherwise all code is likely to be executed immediatley until it finishes, so that the GUI will be responsive again directly after having finished the simulation of the program.
So, threading, be it the GUI or the simulation engine, would only really help to debug a non-trivial program while it is *running*, assuming it would have to run longer than just a couple of msecs or seconds.
Note that even running the program in debugger/step by step mode, will NOT lock up the simulator because the engine will return control to the UI, once a statement has been executed.