Trang Huynh
Member
How do I suspend a thread?
Answer
Methods Used:
sleep(time): This is a method used to sleep the thread for some milliseconds time.
suspend() : This is a method used to suspend the thread. The thread will remain suspended and won’t perform its tasks until it is resumed. resume(): This is a method used to resume the suspended thread.
Answer
Methods Used:
sleep(time): This is a method used to sleep the thread for some milliseconds time.
suspend() : This is a method used to suspend the thread. The thread will remain suspended and won’t perform its tasks until it is resumed. resume(): This is a method used to resume the suspended thread.