the CatWalk example of thread control was written by Ron Thomas long times ago. it was a better example about thread control.
i translated it into x64 Uasm style. and added these "ExitThread,Ret "s function for a thread Exit.
pay attention to:
1. can't use ExitThread in your main thread, Use only own threads which will be exited.
2. monitoring the number of execution threads.
3. relate to I/O, DLL, MEMORY. "RET" is best. "ExitThread" is better. "TerminateThread" isn't good on unless necessary