priority

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Idle       = 19
	Background = 15
	Low        = 10
	Normal     = 0
	High       = -10
	Highest    = -20
)

Priority class. Can be used as a priority class in Windows, or as a "nice" value in unixes

Variables

This section is empty.

Functions

func GetNice

func GetNice() (int, error)

GetNice returns the scheduler priority of the current process

func SetClass

func SetClass(class int) error

SetClass sets the priority class of the current process

func SetIONice

func SetIONice(class, value int) error

SetIONice does nothing in non-linux OS

func SetNice

func SetNice(priority int) error

SetNice sets the unix "nice" value of the current process

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL