 | | To find the places in your program where you can use threads, you essentially must look for the properties we identified in Chapter 1, Why Threads?: potential parallelism, overlapping I/O, asynchronous events, and real-time scheduling. Whenever a task has one or more of these properties, consider running it in a thread. You can identify a task that is suitable for threading by applying to it the following criteria: | |
|