looking for System APIs for load monitoring

2009-08-17 Thread Marc Lohse
I am developing an application that needs to monitor the system's CPU and IO load while it's running to be able to identify a low system load and only do it's resource-hungry work while the system is not busy doing other things. I've been searching for the low-level system API that would give me

Re: looking for System APIs for load monitoring

2009-08-17 Thread Dave Keck
P.S.: My apologies if this question is not exactly Cocoa-related... You're probably better off taking this to darwin-dev. There was also a discussion related to this a few weeks ago on darwin-kernel: http://lists.apple.com/archives/darwin-kernel/2009/Jul/msg00080.html

Re: looking for System APIs for load monitoring

2009-08-17 Thread Mike Abdullah
If you can design to its paradigm, NSOperationQueue is almost exactly what you want. By default it will dynamically adjust the number of running operations to match the system load. Also, read up on Grand Central Dispatch which is coming in Snow Leopard. Mike. On 17 Aug 2009, at 12:13,