UseOnlyThisCoresCount

ProcessorSettings.UseOnlyThisCoresCount property

指定要使用的核心数。 您需要将属性“UseAllCores”更改为“false”。

public int UseOnlyThisCoresCount { get; set; }

例子

[C#]
BarCodeReader.ProcessorSettings.UseAllCores = false;
BarCodeReader.ProcessorSettings.UseOnlyThisCoresCount = Math.Max(1, Environment.ProcessorCount / 2);
[VB.NET]
BarCodeReader.ProcessorSettings.UseAllCores = False
BarCodeReader.ProcessorSettings.UseOnlyThisCoresCount = Math.Max(1, Environment.ProcessorCount / 2)

也可以看看