- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for availableProcessors (0.34 sec)
-
android/guava/src/com/google/common/cache/Striped64.java
/** Generator of new random hash codes */ static final Random rng = new Random(); /** Number of CPUS, to place bound on table size */ static final int NCPU = Runtime.getRuntime().availableProcessors(); /** Table of cells. When non-null, size is a power of 2. */ @CheckForNull transient volatile Cell[] cells; /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 11.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java
int numThreads = ComponentUtil.getFessConfig().getRankFusionThreadsAsInteger(); if (numThreads <= 0) { numThreads = Runtime.getRuntime().availableProcessors() * 3 / 2 + 1; } executorService = Executors.newFixedThreadPool(numThreads); } } }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 18.3K bytes - Viewed (0) -
guava/src/com/google/common/hash/Striped64.java
/** Generator of new random hash codes */ static final Random rng = new Random(); /** Number of CPUS, to place bound on table size */ static final int NCPU = Runtime.getRuntime().availableProcessors(); /** Table of cells. When non-null, size is a power of 2. */ @CheckForNull transient volatile Cell[] cells; /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 11.5K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("XXXC")); int cpus = Runtime.getRuntime().availableProcessors(); assertEquals((int) (cpus * 2.2), cli.calculateDegreeOfConcurrency("2.2C")); assertEquals(1, cli.calculateDegreeOfConcurrency("0.0001C"));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 30.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
* and memory footprint. For example, if a set of tasks are CPU-bound, one could easily create a * very compact {@code Striped<Lock>} of {@code availableProcessors() * 4} stripes, instead of * possibly thousands of locks which could be created in a {@code Map<K, Lock>} structure. * * @author Dimitris Andreou * @since 13.0 */ @J2ktIncompatible @GwtIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 26 12:58:35 UTC 2024 - 20.6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
+ "'. Value must be positive."); } int procs = Runtime.getRuntime().availableProcessors(); int threads = (int) (coreMultiplier * procs); return threads == 0 ? 1 : threads; } else { int threads = Integer.parseInt(threadConfiguration);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 38K bytes - Viewed (0)