06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pSOS+ <strong>System</strong> <strong>Calls</strong> t_setpri<br />

Notes<br />

See Also<br />

Hex Mnemonic Description<br />

0x16 ERR_SETPRI Cannot change: new priority value is<br />

out of range.<br />

0x65 ERR_STALEID Object's node has failed.<br />

1. If the calling task uses t_setpri() to lower its own priority, it can be<br />

preempted by a ready task with higher priority.<br />

2. If the calling task uses t_setpri() to raise the priority of another task, it can<br />

be preempted if that task is ready and now possesses higher priority.<br />

3. Priority level 0 is reserved for the pSOS+ daemon task IDLE. Priority levels 240 -<br />

255 are reserved for a variety of high priority <strong>pSO<strong>System</strong></strong> daemon tasks. While<br />

t_create() will allow creation of tasks at these priorities, there should never<br />

be a need to do so.<br />

Multiprocessor Considerations<br />

If the tid identifies a global task residing on another processor node, the local<br />

kernel internally makes an RSC to that remote node to change the priority of the<br />

task.<br />

Callable From<br />

■ Task<br />

t_create<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 1-155<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!