Class ParallelismInfoTest
java.lang.Object
topics.parallel.utils.ParallelismInfoTest
Hardware Parallelism Inspection
Demonstrates how to programmatically query the Java Virtual Machine (JVM)
to determine the available hardware execution threads, and how to explicitly
override the default parallelism level when provisioning a ForkJoinPool.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidScenario: Querying system resources and pool constraints.
-
Constructor Details
-
ParallelismInfoTest
ParallelismInfoTest()
-
-
Method Details
-
shouldReportSystemParallelismCapabilities
@Test void shouldReportSystemParallelismCapabilities()Scenario: Querying system resources and pool constraints.
Purpose: Outputs the maximum parallel capabilities of the host system alongside an artificially constrained thread pool to demonstrate isolation.
-