This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_pthread_set_process_niceness

Function Documentation

int rc_pthread_set_process_niceness(int niceness)

Lets a process change its own niceness value.

Note that this requires special privaledges and will print an error if run by a normal user. This is just a helpful wrapper for the system setpriority funtion and returns the same thing.

Parameters

niceness[in] new niceness (-20 to 20)

Returns

0 on success, -1 on failure