Skip navigation.
 
mlRe: How to limit number of CPU cores used by a Cocoa app
FROM : Andre Schnoor
DATE : Sat Jan 05 13:02:57 2008

Dave Camp wrote:
> On Dec 30, 2007, at 3:14 AM, Andre Schnoor wrote:

>> Chris Hanson wrote:

>>> Why do you think restricting threads to run on only 2 cores will be
>>> useful?

>>
>> I observed problems with GUI threads when running the app on an
>> 8-core Mac Pro, while it runs fine on dual core CPUs and PPC.  The
>> fix is intented as a temporary workaround only until I found the real
>> cause.

>
> That's your problem. All of your GUI (with a few exceptions) needs to
> be on the main thread.
>


I understand. But why is the method that forks a drawing thread called
#detachDrawingThread:toTarget:withObject: in the first place? IMHO, this
is misleading.

If the detached thread (which currently initiates all of my graphics
output, except window and menu creation) is not allowed to do any UI
drawing, then it should not be called a "drawing" thread. Apple should
mention this in the documentation clearly.

Andre

Related mailsAuthorDate
mlHow to limit number of CPU cores used by a Cocoa app Andre Schnoor Dec 29, 18:09
mlRe: How to limit number of CPU cores used by a Cocoa app John Stiles Dec 29, 19:10
mlRe: How to limit number of CPU cores used by a Cocoa app Chris Hanson Dec 30, 03:51
mlRe: How to limit number of CPU cores used by a Cocoa app Chris Driggett Dec 30, 04:45
mlRe: How to limit number of CPU cores used by a Cocoa app Wade Tregaskis Dec 30, 08:39
mlRe: How to limit number of CPU cores used by a Cocoa app Andre Schnoor Dec 30, 12:14
mlRe: How to limit number of CPU cores used by a Cocoa app Andre Schnoor Dec 30, 13:33
mlRe: How to limit number of CPU cores used by a Cocoa app Dave Camp Dec 30, 19:08
mlRe: How to limit number of CPU cores used by a Cocoa app Chris Williams Dec 30, 19:22
mlRe: How to limit number of CPU cores used by a Cocoa app Andre Schnoor Jan 5, 13:02
mlRe: How to limit number of CPU cores used by a Cocoa app Mike Abdullah Jan 5, 13:57