FROM : Alexander Cohen
DATE : Fri Nov 30 17:36:16 2007
On 30-Nov-07, at 9:41 AM, Thomas Davie wrote:
>
> On 30 Nov 2007, at 13:53, Alexander Cohen wrote:
>
>> 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
DATE : Fri Nov 30 17:36:16 2007
On 30-Nov-07, at 9:41 AM, Thomas Davie wrote:
>
> On 30 Nov 2007, at 13:53, Alexander Cohen wrote:
>
>> 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
| Related mails | Author | Date |
|---|---|---|
| Alexander Cohen | Nov 30, 14:53 | |
| Thomas Davie | Nov 30, 15:41 | |
| Alexander Cohen | Nov 30, 17:36 | |
| Gammah Radiation | Nov 30, 18:00 | |
| Alastair Houghton | Nov 30, 19:01 | |
| Murat Konar | Nov 30, 21:05 | |
| Alexander Cohen | Nov 30, 21:19 | |
| Shawn Erickson | Nov 30, 21:30 | |
| Murat Konar | Nov 30, 22:07 |






Cocoa mail archive

