On Jun 22, 2009, at 2:05 PM, Stas Boukarev wrote:
Terje Norderhaug terje@in-progress.com writes:
The slimefun swank:list-threads currently provides only four values for each thread, namely id, name, status and description.
However, it would be useful to have a generalized interface to other information about threads, such as their priority, creation time, idle time, and total run time.
Could such optional information perhaps be made available as keyword attributes in the result of swank:list-thread?
If you know how to obtain such information.
It is implementation dependent for the different Common LISPs.
For example, Clozure provides:
process-priority process-creation-time
MCL provides these as well, plus:
process-total-run-time process-last-run-time (from which idle time can be calculated).
LispWorks has:
process-total-run-time process-idle-time
If Swank defines a unified interface to such additional process attributes, it can be added to the different back-end implementations by those in the know.
-- Terje Norderhaug