lkml.org 
[lkml]   [1999]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Knowing which task is current in a CPU [ SMP ]
On Tue, 6 Jul 1999, Hugo Varotto wrote:

> I'm currently doing some stuff with SMP kernels, and I'd like to
> know which task is currently running in which CPU.

> The only solution that I found is to go through all the runqueue,

> Does anybody know of other ( more efficient ) way of doing this ?
> I'm working with the 2.2.x series

You obviously haven't taken a look at kernel/scheduler.c, the
kernel is doing exactly what you describe in an efficient way.

cheers,

Rik -- Open Source: you deserve to be in control of your data.
+-------------------------------------------------------------------+
| Le Reseau netwerksystemen BV: http://www.reseau.nl/ |
| Linux Memory Management site: http://www.linux.eu.org/Linux-MM/ |
| Nederlandse Linux documentatie: http://www.nl.linux.org/ |
+-------------------------------------------------------------------+


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.037 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site