numberOfProcessors property

int get numberOfProcessors

获取处理器数量 (仅非Web平台)

Implementation

static int get numberOfProcessors {
  if (kIsWeb) return 0;
  return Platform.numberOfProcessors;
}