Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MPTask hogging CPU



On Tuesday, June 3, 2003, at 06:10 AM, Trygve Inda wrote:

I have an MPTask that does a bunch of image processing. It uses about 86% of
the CPU when it is running without any other apps. As apps are added, the OS
reduces my task's time (all is well).

But, it forces the fan on sometimes on 'books, so... Is there a way to
specify that my task not take more than x percentage of the CPU?

The best you can do (for something automatic) is set the thread priority, but this will not stop the thread from consuming all spare cycles. If you want to restrict the % of CPU then you will have to sleep the thread yourself.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
mt-smp mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mt-smp
Do not post admin requests to the list. They will be ignored.

References: 
 >MPTask hogging CPU (From: Trygve Inda <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.