No, it is not, it is done by the OOM killer in the kernel.  It decides what
to kill first based on the oom_adj, with higher numbers killed before lower
ones.  The foreground process is oom_adj 0, the least needed process is 16,
system processes are < 0.

On Tue, Feb 15, 2011 at 9:53 AM, Chakishante <chakisha...@free.fr> wrote:

> So low-mem task killing is performed by Dalvik VM (or Zygote ?),
> right ?
>
> Sounds good, I feel relieved ...
>
> Thanks !
> Chaki
>
> On Feb 15, 6:13 pm, AppCoder <dan.schm...@gmail.com> wrote:
> > You should be good, the dalvik VM only goes after jvms that it has
> > started.  It won't go killing daemons started by init.rc
> >
> >      Dan S.
> >
> > On Feb 15, 8:25 am, Chakishante <chakisha...@free.fr> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > On my platform, I have a native service (launched by init.rc) which is
> > > needed to initiate communicationwith the modem before rild is
> > > initialized. (Modem communication goes through TTY devices). If this
> > > service was to exit or die, TTY's opened by rild would become invalid
> > > and rild might crash altogether.
> >
> > > I heard that Android has a built-in mechanism which kills processes in
> > > low-memory situations. Does this also apply to native services
> > > launched from init.rc ? Could this service get killed ... ?
> >
> > > Thanks,
> > > Chaki
>
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to