---
title: threadPriority
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/operation/threadpriority
---

# threadPriority

The thread priority to use when executing the operation

## Declaration

```swift
var threadPriority: Double { get set }
```

## See Also

### Configuring the Execution Priority

- [qualityOfService](foundation/operation/qualityofservice.md)
- [queuePriority](foundation/operation/queuepriority-swift.property.md)
