[En-Nut-Discussion] Further discussion on Debug Timeout

William Basser wbasser at adelphia.net
Sat Oct 25 04:23:00 CEST 2003


I created a another thread that resides on a TCP/IP socket.  I use it to
examine the current state of the threads.

I captured the data from a telnet terminal.  I added debug statements
around the NutEventWait.  The LED turns on just prior to the the call to
NutEventWait.
Upon return from the wait, the LED turns off. There are three other
tasks running at the time, all with the same prioritys and this
particular task higher priority.  I tried it with all equal and the same
results.

If you notice in the below printout.  The time remaining for the GatSeq
thread does not decrement.


// just prior to the GatSeq thread being started.

t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      971     OK      None
RdrSeq          Sleep   64      671     OK      None
GatSeq          Sleep   32      721     OK      None
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      190
idle            Ready   255     346     OK      None
T

// this is during the timeout period

>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      665     OK      13
GatSeq          Sleep   32      718     OK      64
RdrMsg          Ready   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      16
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Ready   64      680     OK      None
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Ready   64      665     OK      13
GatSeq          Sleep   32      718     OK      77
RdrMsg          Ready   64      968     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Ready   64      630     OK      3
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None
t
>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      0
GatSeq          Sleep   32      718     OK      77
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      11
idle            Ready   255     346     OK      None


// the actual event being generated, not the timeout

>List of threads with name,state,prio,stack,mem,timeout follows
arpex           Sleep   64      335     OK      4
CmdMsg          Sleep   64      949     OK      None
RdrSeq          Sleep   64      671     OK      None
GatSeq          Sleep   32      721     OK      None
RdrMsg          Sleep   64      929     OK      None
tcpsm           Sleep   64      465     OK      3
DspMsg          Sleep   64      417     OK      None
DbgMsg          Run     64      918     OK      None
rxi5            Ready   9       593     OK      29
main            Sleep   254     702     OK      39
idle            Ready   255     346     OK      None
t

The other task task that is running with timeouts is the RdrSeq thread.
If you notice, the time changes during the dumps.  These dumps occur
from a command being issued at the TELNET terminal.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20031024/e4fe8e4a/attachment.html>


More information about the En-Nut-Discussion mailing list