• 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: How to limit number of CPU cores used by a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to limit number of CPU cores used by a Cocoa app


  • Subject: Re: How to limit number of CPU cores used by a Cocoa app
  • From: John Stiles <email@hidden>
  • Date: Sat, 29 Dec 2007 10:10:13 -0800

Well, you can use the CHUD system preference pane to disable CPU cores. Dunno if this addresses your need or not since you haven't explained why you want this. If you explained your situation better, we might be able to provide better advice. For instance, if your goal is to lower your app's priority relative to other apps, there are better ways of doing it than arbitrarily capping your CPU utilization.


Andre Schnoor wrote:
Hi all,

is there any possibility to limit the number of CPU cores used by the threads of a Cocoa application? I could not seem to find any documentation on this via Google yet.

I need to allocate up to a maximum of 2 cores only, even though the app schedules many more threads at times (up to a dozen). Can this be achieved by configuring the application's properties, or will it require more sophisticated hacks?

Any advice is appreciated.

Andre

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to limit number of CPU cores used by a Cocoa app (From: Andre Schnoor <email@hidden>)

  • Prev by Date: Re: NSImage <-> CIImage problems...
  • Next by Date: Re: bundleWithIdentifier: failures
  • Previous by thread: How to limit number of CPU cores used by a Cocoa app
  • Next by thread: Re: How to limit number of CPU cores used by a Cocoa app
  • Index(es):
    • Date
    • Thread