Re: NSTask and process scheduling priority?
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