问题5:关闭线程句柄是不是等同于 线程句柄=0 赋值?
线程句柄可以类似于一直地址指针,实际上是资源指针。对指针赋值为0,让你不能再通过该指针访问对应线程资源,对线程本身没有任何影响。
同理关闭线程句柄也不对影响线程本身运行。必须强制终止线程才可以,强制终止某个线程,需要用线程句柄来确定是哪个线程。
Closing a thread handle does not terminate the associated thread or remove the thread object. Closing a process handle does not terminate the associated process or remove the process object. To remove a thread object, you must terminate the thread, then close all handles to the thread