O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

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

We learned a lot in this chapter about using pools and parallelized input/output operations in many ways. Again, we used object-oriented capabilities offered by the C# programming language for achieving great scalability in converting single-threaded algorithms to multithreaded scalable jobs, while avoiding the pains of multithreading. Specifically, we covered:

  • Using the ThreadPool class and its pool of threads to easily manage a queue of jobs to be dispatched using a producer/consumer pattern
  • Encapsulating single-threaded algorithms in classes to simplify their use in multithreaded scalable jobs using a pool of threads
  • Improving the input/output performance using multithreaded streaming and taking full advantage of buffers while avoiding ...

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