node-priority
v0.1.5
Published
exposes the getpriority and setpriority system calls for adjusting priority
Downloads
24
Maintainers
Readme
node-priority
This package provides access to the
getpriority(2)
and
setpriority(2)
system calls available on OSX, Linux and other UNIX variants. This
can be used, for example, to implement the UNIX
nice(1)
utility.
Usage
var priority = require('node-priority');
priority.set(priority.Process, 0, 10, function(err) {
if (err)
throw err;
priority.get(priority.Process, 0, function(err, prio) {
console.log('successfully set priority to ' + prio);
});
});