Writing a Multithread Program

Multiple threads are best used for:

If your application contains tasks that require a private address space and private resources, you can protect them from the activities of other threads by creating multiple processes rather than multiple threads. See Working with Multiple Processes.

The sections that follow discuss the steps you need to consider in creating a multithread application: