This content has been marked as final. Show 3 replies
yea i already use interrupt, but the thread is still need time to stop right after interrupt. is thread can just stop straight in the middle?
You don't want your thread to stop too abruptly -- what if it is holding locks or in the middle of some other sort of "transaction" (so to speak) that it needs to finish or undo so as to leave your app in a consistent state.