# ThreadingState enum

Namespace: [Grasshopper2.Components](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.components.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public enum ThreadingState
```

Enumerates the possible processing levels for component solutions.

## Values

| Name | Value | Description |
| --- | --- | --- |
| MultiThreaded | 0 | By default component solutions run on multiple background threads. |
| SingleThreaded | 1 | Run all solver iterations consecutively on a single background thread. |
| UiSingleThreaded | 2 | Run all solver iterations consecutively on the application UI thread. This will block the UI for the duration of the compute, so don't use this option unless you absolutely, positively have to. |
