0.1.5 • Published 9 years ago
node-priority v0.1.5
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);
});
});