Subject: Threads information /proc
To: None <netbsd-help@netbsd.org>
From: aalu paneer <aalu.paneer@gmail.com>
List: netbsd-help
Date: 01/11/2007 17:56:22
Hello All,

I am trying to port an application from Linux to NetBSD.

The application needs to know how many threads any given process has.
In Linux, it looks into /proc/<pid>/task for a count and thread id of
the various threads.

But /proc in NetBSD does not carry this information. Even the number
of threads reported in /proc/<pid>/stat is not proper.

Any suggestion on how to get the information provided in Linux via
/proc/<pid>/task in NetBSD?

Regards,
Me