Skip to contentSkip to conversation

Priorities in the vxWorks skin

Xenomai-help Hans-J. Ude 2 participants 2 messages Nov 23, 2005 – Nov 25, 2005

lore
Share & tools
lore
#0 lore raw

When I create some tasks under the vx skin with different priorities and then look at the /proc/xeno/sched file they are all listed with the value 2. Shouldn't priorities be mapped to the internal priority scale? Of course I can't expect the original vx values there but nevertheless they shouldn't be all the same. I've created an rtai interrupt handler task with priority 99 too. That one appeares with the value 100 in the list.

regards,
Hans

#1 lore raw
Quoted 8 lines · Hans-J. Ude

When I create some tasks under the vx skin with different priorities and then look at the /proc/xeno/sched file they are all listed with the value 2. Shouldn't priorities be mapped to the internal priority scale? Of course I can't expect the original vx values there but nevertheless they shouldn't be all the same. I've created an rtai interrupt handler task with priority 99 too. That one appeares with the value 100 in the list.

The explanation is accessible there:
http://download.gna.org/xenomai/documentation/tags/v2.0.1/pdf/Introduction-to-UVMs.pdf

In short, in the context of the UVM, a user-space copy of the nucleus is running embodied into your Linux process, this is the one that enforces the VxWorks priority levels. To this end, it only uses three scheduling levels from the real nucleus in kernel space it communicates with, in order to schedule the application threads: one for the interrupt services, one for the idle thread, and the final one for the thread that should be running application-wise. Non-running threads are simply suspended from the in-kernel nucleus POV.

Quoted 9 lines

regards,
Hans

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.