RE: Process Priority
RE: Process Priority
- Subject: RE: Process Priority
- From: "Mr. Gecko" <email@hidden>
- Date: Sat, 8 Nov 2008 21:42:17 -0600
so you can't do anything really without adium permissions. I guess
that isn't a problem, I can have a preference for enabling and
disabling so it doesn't ask for password every boot (of course
disabled by default).
is getpriority like this
int pri = getpriority(PRIO_PROCESS, pid);
and does pri have a int with the priority or is it a 0/1 for fail/
success?
Thanks,
Mr. Gecko
The function you want is getpriority, but there are limits to what
you can do on changing a process's priority; if I recall, you can
lower it (going from 0 to 1 or 20), but you can't raise it (going
from 0 to -20) without admin/sudo privileges. My quick-and-dirty
app (it's really only effective for UI applications), DSS Process
Speedometer, uses renice with authorization services to raise and
lower each process's level.
_______________________________________________
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