what's the proper way to tell a thread that is executing a loop to break out of the loop and exit?
what's the proper way to tell a thread that is executing a loop to break out of the loop and do something else?