Apr-05-2018, 06:07 PM
Hello,
I am trying to run a thread and terminate it; this method is described here. The example given shows a short job. How would I use this method to terminate long threads when the user inputs a different command? As of now, the while loop needs to complete before it registers a different command entered; therefore, if a long thread is desired, you would need to wait until the long thread completes before the thread terminates.
Thanks,
Christopher
I am trying to run a thread and terminate it; this method is described here. The example given shows a short job. How would I use this method to terminate long threads when the user inputs a different command? As of now, the while loop needs to complete before it registers a different command entered; therefore, if a long thread is desired, you would need to wait until the long thread completes before the thread terminates.
Thanks,
Christopher