---
title: n_threads
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/bnnsfilterparameters/n_threads
---

# n_threads

The number of worker threads to execute.

## Declaration

```swift
var n_threads: Int
```

## Discussion

Discussion If 0, BNNS uses the best number of threads for the current machine.

## See Also

### Instance Properties

- [flags](accelerate/bnnsfilterparameters/flags.md)
- [alloc_memory](accelerate/bnnsfilterparameters/alloc_memory.md)
- [free_memory](accelerate/bnnsfilterparameters/free_memory.md)
- [allocator](accelerate/bnnsfilterparameters/allocator.md)
- [deallocator](accelerate/bnnsfilterparameters/deallocator.md)
- [options](accelerate/bnnsfilterparameters/options.md)
- [threadCount](accelerate/bnnsfilterparameters/threadcount.md)
