lkml.org 
[lkml]   [2007]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectrunqueue length
Hi,

I am working on a run time threading library in which I want to
interact with the kernel to find out global system utilization
(especially in SMPs).

My question is: Is there a way to find out from an application that how
many active threads are there in OS? By active, I mean ready to run AND
already running (both separately reported or may be one number).
Similarly a number for how many threads are there in wait queues
(blocked on I/O or waiting for an event or a signal). A program might
have multiple threads. This information is useful for runtime library developers, because they can tune their threads and other scheduling. accordingly.

Thanks for your time,

-Khubaib





____________________________________________________________________________________
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-06 23:39    [W:0.028 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site