max number of binder threads

968 views
Skip to first unread message

Ubuntu guy

unread,
Jun 9, 2010, 12:14:51 PM6/9/10
to android-platform
Hi,

I have a senario where in mediaserver has 16 binder threads and all
of them waiting for a lock to be released. Does it mean all other
binder calls from other process to mediaserver wouldn't be serviced?
and if so, what would the state of that call be? Will a remote
exception be thrown or will the call wait forever?

Dianne Hackborn

unread,
Jun 9, 2010, 12:19:56 PM6/9/10
to android-...@googlegroups.com
It most likely means there is a deadlock in the media service.  There is a limit of 16 binder threads, but in practice this won't be a problem unless you have a bug where the threads are unable to return.  Incoming calls will block until a thread is available.


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Dianne Hackborn
Android framework engineer
hac...@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.

Ming

unread,
Jul 7, 2010, 4:08:33 AM7/7/10
to android-platform
Hi, Dianne

I have another question on the binder threads in service process,
does every binder thread has different instance of mediaserver, or
they just share the same instance?
and how to guarantee the resource safe between thread?

Thank you.


On Jun 10, 12:19 am, Dianne Hackborn <hack...@android.com> wrote:
> It most likely means there is a deadlock in the media service.  There is a
> limit of 16 binder threads, but in practice this won't be a problem unless
> you have a bug where the threads are unable to return.  Incoming calls will
> block until a thread is available.
>
>
>
>
>
> On Wed, Jun 9, 2010 at 9:14 AM, Ubuntu guy <sam_...@yahoo.co.in> wrote:
> > Hi,
>
> >  I have a senario where in mediaserver has 16 binder threads and all
> > of them waiting for a lock to be released. Does it mean all other
> > binder calls from other process to mediaserver wouldn't be serviced?
> > and if so, what would the state of that call be? Will a remote
> > exception be thrown or will the call wait forever?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=en.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
Reply all
Reply to author
Forward
0 new messages