UseOnlyThisCoresCount
ProcessorSettings.UseOnlyThisCoresCount property
Ange antalet kärnor som ska användas. Du måste ändra egenskapen “UseAllCores” till “false”.
public int UseOnlyThisCoresCount { get; set; }
Exempel
[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)
Se även
- class ProcessorSettings
- namnutrymme Aspose.BarCode.Common
- hopsättning Aspose.BarCode