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

Generalizing the algorithms for segmentation with classes

So far, we have been developing applications that split work into multiple independent jobs, improve performance, and offer a more responsive UI. We worked hard with lists, replaced linear algorithms with parallel ones, and collected many results to generate a single block while avoiding locking and memory usage problems. However, we used methods (procedures and functions) to create the jobs split into pieces. C# is an object-oriented programming language and offers many possibilities to generalize behaviors needed to simplify our code and to avoid repeating the same code on every new application. How can we use C# object-oriented capabilities to simplify the creation of segmented algorithms ...

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