| Path: | server/shellCommands/threads.cmd (CVS) |
| Last Update: | Sat Aug 18 22:54:10 -0700 2007 |
# # The ‘threads’ MUES::CommandShell command. # Time-stamp: <14-Sep-2002 08:03:38 deveiant> # $Id: threads.cmd,v 1.2 2002/09/15 07:44:37 deveiant Exp $ # # == Authors: # * Michael Granger <ged@FaerieMUD.org> #
Display server threads table.
This command displays a table of the currently-running threads, along with the id, priority, state, $SAFE-level, abort_on_exception status, and description of each one.
threads
implementor
thrList = "#{Thread.list.length} running threads:\n\n" <<
"\t%11s %-4s %-5s %-5s %-5s %-20s\n" % %w{Id Prio State Safe Abort Description}
Thread.list.each {|t|
thrList << "\t%11s %-4d %-5s %-4d %-5s %-20s\n" % [
t.id,
t.priority,
t.status,
t.safe_level,
t.abort_on_exception ? "t" : "f",
t.desc
]
}
thrList << "\n"
return [ MUES::OutputEvent.new(thrList) ]