• 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: NSTask and process scheduling priority?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and process scheduling priority?


  • Subject: Re: NSTask and process scheduling priority?
  • From: Markus Hitter <email@hidden>
  • Date: Tue, 17 Jan 2006 10:44:08 +0100


Am 17.01.2006 um 02:21 schrieb Joseph Kelly:

The solution I'm thinking of so far includes calling setpriority() on the process, which requires super-user privileges etc. In the old days, I would use AuthorizationExecuteWithPrivileges() to set the uid to root on my process, then when it launched, it could set its own priority.

You obviously want to get on the list of misbehaving Mac OS X apps quickly :-}


You always get all of the available processing power, regardless of priorities. Priorities only come into play when the user does more than one thing at the same time. So it's hard to imagine of any reason why an app would require higher privileges.

You can set lower privileges without being root. Sometimes useful for e.g. indexing.

If you have real time demands, look at how QuickTime/CoreAudio people do it.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSTask and process scheduling priority?
      • From: Joseph Kelly <email@hidden>
References: 
 >NSTask and process scheduling priority? (From: Joseph Kelly <email@hidden>)

  • Prev by Date: Re: How to Get the Color Effect
  • Next by Date: Multiple NSOpenGLPixelFormats - performance issue
  • Previous by thread: NSTask and process scheduling priority?
  • Next by thread: Re: NSTask and process scheduling priority?
  • Index(es):
    • Date
    • Thread