How to pause Thread execution

前端 未结 5 1235
耶瑟儿~
耶瑟儿~ 2021-01-03 09:09

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

5条回答
  •  灰色年华
    2021-01-03 09:50

    Same logic as thread pool. where the threads are in a pool until they are invoked to perform some action submitted to the pool

提交回复
热议问题