Re: Thread Questions

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Aug 23 2000 - 13:08:07 EST


On Wed, 23 Aug 2000, Albert D. Cahalan 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.

I wasn't suggesting it as generic way of detecting threads. He wanted to
detect CLONE_VM threads and the above method does work for them.

Regards,
Tigran

-
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/



This archive was generated by hypermail 2b29 : Wed Aug 23 2000 - 21:00:09 EST