# MaxThreadsInOneTask

`MaxThreadsInOneTask` defines the maximum threads that can be consumed in one task.

## JSON Structure

**Location in template:**
```
LabelRecognizerTaskSettingOptions[i]
    └── MaxThreadsInOneTask
```

**Parent object:** [LabelRecognizerTaskSetting](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/task-settings/label-recognizer-task-settings.md)

**Example:**

```json
{
    "MaxThreadsInOneTask": 4
}
```

> [!NOTE]
> - This snippet shows only the `MaxThreadsInOneTask` parameter.
> - To use it, embed this parameter within a [LabelRecognizerTaskSetting](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/task-settings/label-recognizer-task-settings.md) object in the complete JSON structure.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#minimal-valid-json-example)

## Parameter Details

| MaxThreadsInOneTask Parameter Details |
| :------------- |
| **Type**<br>*int* |
| **Range**<br>[0, 256] |
| **Default Value**<br>0 |

**Remarks**

- Changed the default value to 0 from 4 in version 3.2.1000
- Updated the value range to [0, 256] in version 3.2.1000