UseOnlyThisCoresCount

ProcessorSettings.UseOnlyThisCoresCount property

Tentukan jumlah core yang akan digunakan. Anda perlu mengubah properti “UseAllCores” menjadi “false”.

public int UseOnlyThisCoresCount { get; set; }

Contoh

[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)

Lihat juga