Chinese Simplified (简体中文)

MultiProcessingModeEnum

MultiProcessingModeEnum enumeration constants specify the mode of processing multi-page documents using multiple CPU cores.

typedef enum {
 MPM_Sequential,
 MPM_Auto,
 MPM_Parallel
} MultiProcessingModeEnum;
    

Elements

Name Description
MPM_Auto The number of processes is detected automatically. If only one page is processed or there is only one processor in the system, one process is used. Otherwise, parallel processing is used.
MPM_Parallel Pages of a document are always processed in parallel processes.
MPM_Sequential Pages of a document are processed sequentially in one process.

Remarks

When parallel processing is used, the actual number of processes which is run depends on the value of the IMultiProcessingParams::RecognitionProcessesCount property.

If the value of the IMultiProcessingParams::RecognitionProcessesCount property is 0, the number of processes is equal to the minimum of the following values:

If the value of the IMultiProcessingParams::RecognitionProcessesCount property is not 0, the number of processes is equal to the minimum of the following values:

  • the value of the RecognitionProcessesCount property,
  • number of free CPU cores available in the license,
  • number of pages in the document.

The results of processing the same document in parallel processes and in a single process may be different. This is due to the fact that not all information which is used during processing can be shared between different processes.

The distribution among CPU cores is available for the following methods:

Used in

IMultiProcessingParams::MultiProcessingMode

9/17/2024 3:14:41 PM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.