附录 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 multitasking operating system, a process inWindowscontains one or more threads.32-bit WindowsenvironmentWin32 APIprovides a multi-threaded application development interface functions required, and use of VC in the standard C libraries are also provided to develop multithreaded applications, the corresponding MFC class library encapsulates the class of multi-threaded programming users in the development can be based on the needs and characteristics of the application select the appropriate tool.In order so that we can fully understand theWindowsmulti-threaded programming techniques, this article will focus onWin32 APIandMFCare two ways of how to prepare multi-threaded programs. Multithreaded Programming inWin32andMFCclass library under way to support the principle is the same, the main thread of the process at any time needed to create a new thread.When the thread has finished, automatically terminate the thread; when the process is complete,...