附录 AUnder theWindowsplatform, multi-threaded programmingA thread is a process execution path, it contains separate stack andCPUregister state, the process of each thread to share all resources, including open files, signal identification and dynamic allocation of memory and so on
All threads within a process using the same address space, and these threads of execution by the system scheduler control thread scheduler to decide which and when to execute the executable threads
Thread has priority, lower priority thread must wait until the higher priority thread after their implementation
In the multi-processor machines, the scheduler can be multiple threads running up into different processors, it will give the processor the task balance, and improve efficiency of the system
Windowsis a mult