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

# threadPriority

The receiver’s priority

## Declaration

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

## Discussion

Discussion The thread’s priority, which is specified by a floating point number from 0.0 to 1.0, where 1.0 is highest priority. The priorities in this range are mapped to the operating system’s priority values. A “typical” thread priority might be 0.5, but because the priority is determined by the kernel, there is no guarantee what this value actually will be.

## See Also

### Prioritizing Thread Work

- [qualityOfService](foundation/thread/qualityofservice.md)
- [QualityOfService](foundation/qualityofservice.md)
- [threadPriority()](foundation/thread/threadpriority().md)
- [setThreadPriority(_:)](foundation/thread/setthreadpriority(_:).md)
