tasks — Displays task threads currently running on system.
tasks
ABLE runs several threads to control various hardware devices. This command displays the currently running threads.
The information is presented in a tabular form. The columns are:
Task name and address |
Priority of execution |
Current state |
Register context block |
Time thread was last scheduled |
The scheduling for the threads is a simple “round robin” method which suffices for ABLE requirements.
Example 9.15. Using the tasks command
This example shows the tasks command when run on a EB2410ITX. The showhz command is used to show the current system time which is the same as used in the “Last Run” column. It shows the Ethernet PHY control task, the USB host controller driver, the reaper task to clean up after other tasks, the init task which starts the system and the main task which typically runs the autoboot or interactive shell.
>showhz ; tasks ; showhz HZ: 0xf519 (62745) (100/sec => 627 seconds) Task Prio State Regs Last Run Sleeping Wakeup Preempts --------------------- ---- ------- -------- -------- -------- -------- -------- tasks e00898c4 0004 r-----c e0089920 0000f51a 00000000 00000000 00000002 usb-hub e008b2a4 0001 ------- e008b300 0000008b e008c288 -0062747 00000000 usb-hub e0087e54 0001 ------- e0087eb0 0000f51c e0012178 00000001 00000000 IP dev dm1 e0084e14 0001 ------- e0084e70 0000f51c e0084dd4 00000001 00000000 IP dev dm0 e0082c24 0001 ------- e0082c80 0000f51d e0082be4 00000001 00000000 usb-hc e0080ae4 0001 ------- e0080b40 0000f51e e0012178 00000001 00000000 reaper e007c6f4 0000 ------- e007c750 0000f519 e0012164 -0062751 00000000 IP Stack e0079b54 0003 ------- e0079bb0 0000f51a e0075704 00000005 00000000 idle e0075514 0008 r------ e0075570 0000691b 00000000 00000000 00000226 init e00757c4 0004 ------- e0075820 0000f519 e008988c -0062753 00062365 HZ: 0xf521 (62753) (100/sec => 627 seconds) >