Multi-threaded programming under the Windows platform
Thread is a execution path of the process, which contains a stand-alone stack and CPU register status, each thread sharing all process resources, including open files, signal identity, and dynamically allocated memory. All threads in a process use the same address space, and the execution of these threads is controlled by the system scheduling program, and the scheduler determines which thread executable and when to perform threads. Threads have priority, priority threads must wait until the higher priority thread is executed after execution. On a multi-processor machine, the scheduler can put multiple threads