ps_get_nice: Get or set the priority of a process

Description Usage Arguments Details Value

View source: R/low-level.R

Description

ps_get_nice() returns the current priority, ps_set_nice() sets a new priority, ps_windows_nice_values() list the possible priority values on Windows.

Usage

1
2
3
4
5

Arguments

p

Process handle.

value

On Windows it must be a string, one of the values of ps_windows_nice_values(). On Unix it is a priority value that is smaller than or equal to 20.

Details

Priority values are different on Windows and Unix.

On Unix, priority is an integer, which is maximum 20. 20 is the lowest priority.

Rules:

Value

ps_windows_nice_values() return a character vector of possible priority values on Windows.

ps_get_nice() returns a string from ps_windows_nice_values() on Windows. On Unix it returns an integer smaller than or equal to 20.

ps_set_nice() return NULL invisibly.


ps documentation built on March 1, 2021, 1:06 a.m.