Why I after suspend a thread, use free release thread
Threads will not move??????
CodePudding user response:
. The Terminate;. Free;
CodePudding user response:
When thread creation is to Create (True)CodePudding user response:
Through the thread object, you tell threads suspend, thread is hanging in there, of course; You dropped the thread object free now, but the thread itself is still suspend state, stuck in there, of course, a thread object is the gripper, thread is the controlled target, concept is clear,So, you need to pass a thread object, notify the thread to resume, threads can along the intended route to continue till the end; If the thread of execution path is an infinite loop, you may also need to send the thread a Terminate signal, thread after receiving the signal out of circulation, the end of the thread of execution, at this time, you can free thread object itself,
CodePudding user response: