Parallel Sections defines a number of pages of code that are run as parallel sections on a shared memory parallel (SMP) computer
The element encapsulates access to Parallel Section in the Parallel Java library.
To add a set of parallel sections of code to your model, drag the icon element to the list of your model elements and enter the code for each of the parts of your parallel code. You can also modify the default region run code and the barrier action that synchronizes the sections.
The element implements the following basic methods:
pjSections.execute(4); // runs the parallel code using 4 threads pjSections.execute(0); // runs the parallel code using the default number of threads _println ("The sections executed on "+pjSections.getThreadCount()+" threads,"); _println ("and took "+pjSections.getExecutionTime()+" milliseconds.");