Develop a methodology for the tuning phase of the development cycle. The tuning phase increases performance incrementally where possible.
Apply procedures provided by the Microsoft Win32 API to create, suspend, resume, and terminate threads. Context switching in a multithreaded application is cheaper than context switching of multiple processes, because switching processes carries a lot more overhead than switching threads.
For more complete information about compiler optimizations, see our Optimization Notice.