package
module
Version:
v0.0.0-...-4d703ae
Opens a new window with list of versions in this module.
Published: Mar 1, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-priority
Manipule the priority of the GO program
Example
import (
priority "github.com/Codehardt/go-priority"
)
func main() {
if err := priority.SetPriority(priority.PriorityLow); err != nil {
...
}
...
}
Priorities
| Priority |
Unix |
Windows |
| PriorityVeryLow |
19 |
IDLE_PRIORITY_CLASS |
| PriorityLow |
10 |
BELOW_NORMAL_PRIORITY_CLASS |
| PriorityMedium |
0 |
NORMAL_PRIORITY_CLASS |
| PriorityHigh |
-10 |
ABOVE_NORMAL_PRIORITY_CLASS |
| PriorityVeryHigh |
-20 |
HIGH_PRIORITY_CLASS |
Documentation
¶
Priority of a process
const (
PriorityVeryLow Priority = iota
PriorityLow
PriorityMedium
PriorityHigh
PriorityVeryHigh
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.