Class ParallelismInfoTest

java.lang.Object
topics.parallel.utils.ParallelismInfoTest

class ParallelismInfoTest extends Object

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 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.