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

Time for action - Creating a specialized parallel algorithm coordination subclass

We have the pieces (instances of SunspotAnalyzerPiece), but now we must create the subclass to create and solve the sunspot analyzing algorithm.

We are going to create a subclass of the ParallelAlgorithm class and add the variables, properties, and methods needed for the sunspot analyzer algorithm. Thus, we are going to begin representing the sunspot analyzer parallel algorithm:

  1. Stay in the project, SunspotsAnalyzer.
  2. Create a new class, SunspotAnalyzer (a subclass of ParallelAlgorithm), using the following declaration:
    class SunspotAnalyzer : ParallelAlgorithm
    
  3. Add the following lines of code at the beginning, as we are going to use the System.Drawing classes):
    using ...

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