Table of Contents

Property MaxConcurrentProcesses

Namespace
LMKit.Extraction.Ocr
Assembly
LM-Kit.NET.dll

MaxConcurrentProcesses

Gets or sets the maximum number of OCR operations allowed to run concurrently across all LMKitOcr instances.

public static int MaxConcurrentProcesses { get; set; }

Property Value

int

The concurrency cap. Defaults to MaxSupportedConcurrentProcesses (the host's physical CPU core count, capped at 24). Assigned values are clamped to that same ceiling.

Remarks

Assigning a value resizes the shared concurrency gate so subsequent RunAsync(OcrParameters, CancellationToken) calls observe the new cap. In-flight operations are never interrupted: when the cap is lowered, the reduction is absorbed as running operations complete. The OSD engine cache size is derived from this value and follows it automatically.

Exceptions

ArgumentOutOfRangeException

Thrown when the assigned value is less than 1.

Share