• 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: Process Priority
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Core Data entity fetching by date
  • Next by Date: Opening persistent data store
  • Previous by thread: RE: Process Priority
  • Next by thread: RE: Process Priority
  • Index(es):
    • Date
    • Thread