Command line tool to show magic numbers of thread priority.
zlib License.
Windows, Linux, macOS.
- Compile ptp.c. Use make and Makefile.
- Put ptp in a directory registered in PATH.
| toolset | Makefile |
|---|---|
| Linux | unix/Makefile |
| Mac OS X (Xcode) | unix/Makefile_mac |
| Microsoft Visual C++ | win/Makefile |
Simply execute ptp. ptp has no option.
Example on Windows 7:
> ptp
THREAD_PRIORITY_IDLE -15
THREAD_PRIORITY_LOWEST -2
THREAD_PRIORITY_BELOW_NORMAL -1
THREAD_PRIORITY_NORMAL 0
THREAD_PRIORITY_ABOVE_NORMAL 1
THREAD_PRIORITY_HIGHEST 2
THREAD_PRIORITY_TIME_CRITICAL 15
Example on Linux:
$ ptp
SCHED_FIFO 1 99
SCHED_OTHER 0 0
SCHED_RR 1 99