npm.io
0.1.5 • Published 11 years ago

node-priority

Licence
MIT
Version
0.1.5
Deps
2
Vulns
0
Weekly
0
Stars
3
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

node-priority

Build Status

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);
    });
});

Keywords