Skip to content

max_number_of_threads

Nicolai Mueller edited this page Aug 27, 2024 · 1 revision

Type

String

Default

1

Description

Specifies the maximum number of threads that PROLEAD can utilize for parallel processing. Users can configure the number of threads either by specifying an exact number or by selecting a relative proportion based on the total number of threads available on the system. The following options are supported:

  • all: Use all available threads
  • half: Use half of the available threads
  • third: Use one third of the available threads
  • quarter: Use one fourth of the available threads

Impact

Increasing the thread count may improve performance on systems with multiple cores. However, this can lead to higher memory usage and potential contention for CPU resources.

Examples

Example 1: Relative Number of Threads

"performance": {
    "max_number_of_threads": "half"
}

In this configuration, PROLEAD will utilize half of the total available threads on the system.

Example 2: Exact Number of Threads

"performance": {
    "max_number_of_threads": "2"
}

Here, PROLEAD is configured to use exactly 2 threads for parallel processing.