April 2002
Intermediate to advanced
1024 pages
23h 26m
English
This chapter has given you a flavor for the services that the CLR offers with regards to threading. This chapter has really been a showcase for the kinds of tasks that the CLR allows you to do. In closing, following are some tips and advice on multithreaded applications:
Benchmark—Before starting any multithreaded application, make sure you are aware of the resources that are involved. Spinning many threads might actually degrade your application performance. Consider the ThreadPool. Many of the performance gains that come from using this class are because handing out Threads to perform work is so miserable as compared to an application that starts up 100 or so Threads, where each Thread must synchronize with the others and a context ...