Summary

In this chapter, we have learned about different concurrent data structures, their advantages and disadvantages, and we have understood that choosing an appropriate concurrent data structure is a complicated and responsible task. The right choice is defined by many criteria such as availability, complexity, resource consumption, versatility, performance, and many others.

Similar to software development, in general there is no single and proper universal solution appropriate for all usage scenarios. In some cases, it is better to use regular collections with exclusive locking. Some other cases will require developing our own specific concurrent data structures from scratch, since a universal standard collection will not fit in the high performance ...

Get Mastering C# Concurrency now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.