Sets the priority of the specified thread.
#include <thread.h> int thr_setprio ( thread_t thr, int pri);
(IN) Specifies the thread.
(IN) Specifies the priority of the target thread with one of the following flags:
If successful, returns 0; otherwise, returns a nonzero error code:
The thr_setprio function associates a priority with the specified thread. Currently, all threads run at the same priority, regardless of the priority value associated with them.