Hi, everyone!
I have recently been faced with using an algorithm that kinda hogs the entire CPU. If the user tries to do anything during the running of the program, the computer hangs. I know I can solve this with threading, but I'm not quite sure how. As I see it, I should make a thread for the main algorithm and one to respond to the user events. Any thoughts or help anyone can offer me? I would be infinitely grateful.
Thanks in advance,
Vlad.
I have recently been faced with using an algorithm that kinda hogs the entire CPU. If the user tries to do anything during the running of the program, the computer hangs. I know I can solve this with threading, but I'm not quite sure how. As I see it, I should make a thread for the main algorithm and one to respond to the user events. Any thoughts or help anyone can offer me? I would be infinitely grateful.
Thanks in advance,
Vlad.