Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 687 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 687 Bytes

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