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