O'Reilly logo

.NET Common Language Runtime Unleashed by Kevin Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required