- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for calculateDegreeOfConcurrency (0.25 sec)
-
maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("CXXX")); 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: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 23:31:59 UTC 2024 - 28.3K bytes - Viewed (0) -
maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
// final String threadConfiguration = commandLine.getOptionValue(CLIManager.THREADS); if (threadConfiguration != null) { int degreeOfConcurrency = calculateDegreeOfConcurrency(threadConfiguration); if (degreeOfConcurrency > 1) { request.setBuilderId("multithreaded"); request.setDegreeOfConcurrency(degreeOfConcurrency); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 23:31:59 UTC 2024 - 72.6K bytes - Viewed (0)