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

NSTask and process scheduling priority?


  • Subject: NSTask and process scheduling priority?
  • From: Joseph Kelly <email@hidden>
  • Date: Mon, 16 Jan 2006 17:21:38 -0800

Is there a way to raise the scheduling priority of an NSTask launched process (i.e. renice) from Cocoa?

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.

But now that I am a fledgling Cocoa programmer, I'm convinced there's gotta be an easier way to do this.

Any help appreciated,

Joseph K.


_______________________________________________ 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: Markus Hitter <email@hidden>
  • Prev by Date: Re: LDAP and Cocoa
  • Next by Date: Re: ZeroLink symbols and frameworks
  • Previous by thread: Re: Control iTunes from cocoa
  • Next by thread: Re: NSTask and process scheduling priority?
  • Index(es):
    • Date
    • Thread