• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling a Processor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Disabling a Processor (From: Scott Rasche <email@hidden>)

  • Prev by Date: Re: Switch to Symbolic Counterpart keyboard equivalent
  • Next by Date: Re: HeaderDoc questions
  • Previous by thread: Re: Disabling a Processor
  • Next by thread: OK, I give up... help a dumb newbie
  • Index(es):
    • Date
    • Thread