RTEMS Logo

RTEMS 4.9.2 On-Line Library


Task Manager Task Manager Changing Task Priority

PREV UP NEXT Bookshelf RTEMS ITRON 3.0 API User's Guide

1.3.4: Task Manager Changing Task Priority

The chg_pri system call changes the current priority of the task specified by tskid to the value specified by tskpri.

A task may specify itself by specifying tskid = TSK_SELF = 0. Note, however, that an E_ID error will result if tskid = TSK_SELF = 0 is specified to a system call issued from a task-independent portion.

The priority set by this system call remains in effect until the task exits. Once a task enters DORMANT state, its priority prior to exiting is lost. When a task which enters DORMANT state restarts, the initial task priority (itskpri) specified at task creation or at system startup will be used.


PREV UP NEXT Bookshelf RTEMS ITRON 3.0 API User's Guide

Copyright © 1988-2008 OAR Corporation