Chapter 8. Using Threads with Collections

After completing this chapter, you will be able to

  • Understand what a thread is.

  • Understand why you should synchronize access to collections.

  • Identify what tools are available to help you synchronize access to collections and when to use each one.

  • Add synchronization support to your custom collection classes.

What Is a Thread?

Windows is a multitasking operating system. From the user’s point of view, this means that multiple processes seem to run at the same time. From the system viewpoint, multitasking is far more complex than that. You can find many books that go into the inner workings of processes and multitasking, but doing so is beyond the scope of this book. Instead, this section provides only the most ...

Get Developer’s Guide to Collections in Microsoft® .NET 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.