Searched refs:cpuCount (Results 1 – 2 of 2) sorted by relevance
34 int cpuCount = sysconf(_SC_NPROCESSORS_CONF); in TaskManager() local38 int workerCount = cpuCount > 2 ? 2 : 1; in TaskManager()
363 int cpuCount = Runtime.getRuntime().availableProcessors(); in computeBestConfiguration() local364 if (cpuCount == 1) { in computeBestConfiguration()367 int start = MIN_SIZE + (cpuCount - 1) * STEP; in computeBestConfiguration()369 int step = STEP * cpuCount; in computeBestConfiguration()371 final CountDownLatch signal = new CountDownLatch(cpuCount); in computeBestConfiguration()373 for (int i = 0; i < cpuCount; i++, start -= STEP, end -= STEP) { in computeBestConfiguration()