# ParallelBudget class

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

```cs
public static class ParallelBudget
```

Thread count utility for balancing thread usage involving nested loops that are all participating in the threadpool. Components which run multithreaded code within their iterated Process() methods should try and use the threading tools in this class lest they explode the thread usage.

## Methods

- [For](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parallel.parallelbudget/for.md): (3 overloads, static) Run a loop using the threads available to the current thread.
