So is there any method I can use, to set the priority for a process? Linux normally has this ability (e.g. nice - Set process priority of new processes)
In the Android API I found a method to kill processes: killProcess(int pid) So is there any possibility for me as a developer to use a method like the killProcess-method zu manage the priority of a process? On Aug 26, 6:48 pm, Dianne Hackborn <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

