Report question

Question: How is Mac OS X Activity Monitor implemented? Can I use the same API?