2.2.13   parallelization

The slot parallelization results in the manual entry Execution Information. It contains information about the timeout and parallelization characteristics of the operator. On the one hand, this regards the possibility of using the operator in a parallel, for example, multithreaded application and on the other hand this regards the automatic parallelization which HALCON uses to speed up the operator's processing when working with multi-processor or multi-core hardware.

The slot parallelization consists of several sub-slots, each starting with a characteristic keyword followed by a colon and finishing with a semicolon. The example below shows the slot for the operator dyn_threshold, which is not “local”, needs neither complete nor mutual exclusion, and is parallelized on tuple and domain level. The single subslots and their meaning will be described in the following sections.

  parallelization
    process_exclusively:   false;
    process_locally:       false;
    process_mutual:        false;
    method:                split_tuple, split_domain;
    region_postprocessing: domain_concat_si_inp;

Though, we recommend to specify the whole slot parallelization, it is also possible to completely leave it out in an operator's description. In this case, it is assumed that the operator is reentrant, i.e. it is not processed under (complete or mutual) exclusion, and that it must be processed “locally”. The latter also means that no parallelization is used when processing the operator. This assumption corresponds exactly to those which are used in the case of missing single subslots (see descriptions above).