Re: Disabling a Processor
Re: Disabling a Processor
- Subject: Re: Disabling a Processor
- From: Chris Espinosa <email@hidden>
- Date: Wed, 7 Jul 2004 10:15:11 -0700
On Jul 6, 2004, at 4:08 PM, Scott Rasche wrote:
> I have code that works perfectly on a G4 PowerBook - but will lock up
> on my Dual G5 machine.
>
> If I run the code in debug mode on the G5 - I can break the deadlock
> by pausing and then continuing execution.
>
> I tested on the Dual G5 by typing the following into the terminal and
> then rebooting:
> sudo nvram boot-args="cpus=1"
>
> After reboot - there are no hangups on the dual G5 - which makes me
> believe the 2 processors are competing for a shared resource but for
> the life of me I can't figure out what it is.
>
> My code is a pure Java application - I also have a version that is in
> Objective-C Cocoa. They both exhibit the same odd behavior.
>
> Is there a setting in XCode to tell it to use just one processor?
Not in Xcode per se, but it's available from the command line:
%nvram boot-args=cpus=1
and restart. Setting it back to 2 is left as an exercise for the
reader.
Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.