lkml.org 
[lkml]   [2000]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Thread Questions
Date
> Tigran Aivazian writes:
> > On Wed, 23 Aug 2000, Patrick Narkinsky wrote:

[...]

> > You could enhance a file /proc/<pid>/stat (or some other, or invent
> > a new one) to export a VM cookie (sorry, working with Mark made the
> > word "cookie" my favourite one and I can't think of a better :)
> > which is nothing other than a current->mm value, i.e. a kernel
> > virtual address. Then you can easily detect CLONE_VM threads.
>
> Note that this isn't a proper way to detect threads.

Taking off from Linus' suggestion of task-group-ids,
why not having something like
/proc/tgroups/<tgid>
containg only symlinks to the dirs in /proc/<pid> for
tasks belonging to some task-group?

Sure, it wouldn't explain WHAT the tasks are sharing, but still...

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

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