Linux doesn't really associate priorities with processes... or more accurately, in Linux a process is a unit of execution, so each thread is also actually a process (running in the same address space), with their own independent priorities.
On Wed, Aug 26, 2009 at 4:29 AM, [email protected] < [email protected]> wrote: > > Thanks! > > Ok, I can set priority for threads... but threads running in > processes... is it therefore possible to set priority for processes as > well...? > > > > On 26 Aug., 00:04, 3crowntech <[email protected]> wrote: > > Hi Matthias, > > > > You can set thread priority by android.os.Process.setThreadPriority > > method. This is how android controls resource allocation. > > Thanks. > > > > On Aug 26, 5:45 am, "[email protected]" <[email protected]> > > wrote: > > > > > > > > > hi all, > > > > > the Android web site indicates that "all applications are created > > > equal". What is the strategy to ensure that critical applications/ > > > services have priority? > > > > > Are there any facilities Android does provide to ensure certain > > > applications and/or threads to receive a minimum of CPU bandwith (and > > > other apps/threads are prevented from consuming all the CPU bandwith)? > > > > > Matthias- Zitierten Text ausblenden - > > > > - Zitierten Text anzeigen - > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

