[concurrency-interest] Concurrency in Android

Joe Bowbeer joe.bowbeer at gmail.com
Wed Dec 21 15:36:58 EST 2011

Hi Blake!

Android's AsyncTask corresponds to Java SE's SwingWorker.  Both are
designed for subclassing, with one abstract method that executes on a
managed background thread and a second method that executes on the main
application thread.  Android's AsyncTask is made more complicated by the
fact that the UI context is blown away (by default) every time the handset
rotates.  SwingWorker is not often discussed on this list, but whenever it
is I usually plug my old article "The Last Word in Swing Threads".  Cool
title.  Anyway, I'd be happy to continue our discussion on this list if
there's interest.  I should also mention, in case it's not clear to
everyone, that Android includes all of java.util.concurrent, unmodified as
far as I know, and I believe a j.u.c. ThreadPoolExecutor is powering the
AsyncTask executions, right?


On Wed, Dec 21, 2011 at 10:04 AM, Blake Meike wrote:

> Hi,
>  I'd be interested to know if there is anyone is looking, specifically, at
> the concurrency picture in Android.  I understand that this is somewhat
> off-topic, in a group that tends to the theoretical and Java.  Android has
> many similarities to Java, though, including the source language, a JVM and
> a JIT and is surely in fruitful topic for concurrency-interest.
>  I had a discussion, a few months ago, with frequent contributor here, Joe
> Bowbeer, about shared concerns for the interaction of the Android managed
> application model and its AsyncTask framework.  I came away from that
> discussion convinced that it is all but impossible to use the framework in
> a thread-safe way.  I'd be interested in hearing about (and participating
> in!) any other evaluation of the Android platform, from a concurrency
> perspective.
> Thanks
>  -blake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20111221/55bb612c/attachment.html>

More information about the Concurrency-interest mailing list