Threads information /proc

"aalu paneer" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.