|
In fact, I think this is normal.It is not the end of the thread, the handle will disappear immediately.
Here is my opinion:
The thread has its own counter and its own context. When the technical device = 0, the system will release resources. Note that it is system management, so there is also some time. We can often see the 3 states of the thread when we read the os book. There is a state called the zombie state, which is the zombie process under Linux. It means that it is over, but the system has not released resources, and its lifetime is this period of time. Windows is a multi-threaded model, its threads and unix The following processes are basically the same. |
|