How to pause execution of some Thread. I have Thread t and I have two buttons, PAUSE and CONTINUE. On pause I need to pause thread execution and on continue to thread start
There is a wait and await that you can call. Await sounds closer to what you are looking for. Why do you need to pause the execution of some thread? If it for something other than homework there may be other solutions.