Is it possible to limit an apps CPU usage to under a certain
percentage using cocoa?
Someone may want to correct me, but I'm pretty sure that that goes
against the way the scheduler works -- if there's spare CPU and
something can use it, it will give it.
What you can do, is use nice to lower your priority in the scheduler.
In that case, maybe you have an idea for me. I have a daemon that runs
and indexes all the images on a system. For each image, it needs to
open it up, get some info, close it and store that info. This is very
CPU consuming and can pretty much bring the system to a halt after a
while.
thanks
AC
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com