Proc/xenomai/sched

From Xenomai

Jump to: navigation, search

Example Dump

CPU  PID    PRI      PERIOD   TIMEOUT    STAT       NAME
  0  0       -1      0        0          R          ROOT
  0  0        0      0        0          W          timsPipeReceiver
  0  1017     0      0        0          W          display-1016
  0  1018    99      100000   67013      D          sampling-1016
  0  1168    81      0        299510744  wt         ChassisHeinzmann0C
  0  1169    80      0        13096226   Dt         ChassisHeinzmann0D
  0  1170    82      0        89485754   D          ChassisHeinzmann0L
  0  1172    81      0        330086541  wt         GyroPerformTech0C
  0  1174    80      0        7863737    Dt         GyroPerformTech0D
  0  1176    81      0        174504203  wt         OdometryGyroChassis0C
  0  1178    80      0        84293190   Dt         OdometryGyroChassis0D

Fields

Field abbreviation Meaning
CPU CPU number the thread runs on
PID Linux process ID associated with the thread (0 for kernel thread)
PRI Priority of the task (-1 for ROOT thread, i.e. the Linux kernel)
PERIOD Thread's period or 0 if it is non-periodic
TIMEOUT Currently pending resource timeout or timed suspension of the thread
STAT Symbolic thread status, see table below
NAME Name assigned to the thread


Thread Status Bits

Status bit Meaning
S Forcibly suspended
w/W Waiting for a resource, with or without timeout
D Delayed (without any other wait condition)
R Runnable
U Unstarted or dormant
X Relaxed shadow
H Held thread
b Priority boost undergoing
T Ptraced and stopped
l Locks scheduler
r Undergoes round-robin
s Interrupt shield enabled
t Mode switches trapped
o Priority coupling off
f FPU enabled (for kernel threads)
Personal tools
Hardware Support