Task Parallel Library: Design Principles and Best Practices
If you believe that knowing how something works helps you use it better, and that patterns and best-practices provide guidance and inspiration, then this talk is for you. In this session we look into some of the decisions that were made in the design of the TPL API, and how these design decisions affect its usage patterns. We look at the ways by which the API can help us optimize context switches, how to best utilize the underlying thread-pool, and how to create more elegant and maintainable applications through the application of the right APIs in the right places. This talk is based on the speaker's extensive research, experimentation, and in-depth interviews with the people who designed the TPL.