Re: Darwin Noob Question
Re: Darwin Noob Question
- Subject: Re: Darwin Noob Question
- From: Tilghman Lesher <email@hidden>
- Date: Tue, 01 Nov 2011 04:15:46 -0500
On Tue, Nov 1, 2011 at 2:09 AM, chriskxu <email@hidden> wrote:
> Hi there,
> I'm new to darwin development, and I have a newbie question, are there some
> apis that I can call to get general process and thread information(pid,
> memory usage, cpu, etc...) in user space. Normally on linux, I would use
> /proc, but as I understood there are no such things on OSX. Can someone help
> me with this?
man 3 sysctl
This is the way that top(1) does it:
http://opensource.apple.com/source/top/top-73/libtop.c
-Tilghman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden