Wednesday, August 31, 2011

[android-developers] Re: Can we create two ThreadPoolExecutor running on android?

Take a look at this article and the open source project it mentions.

http://coopsoft.com/ar/AndroidArticle.html

You can create the Tymeac service with thread pools and do anything
you want

Ed

On Aug 30, 12:30 pm, usher <usher...@gmail.com> wrote:
> AsyncTask is managing a thread pool with 5 core thread. Once we start
> to use AsyncTask, it will start to set up this thread pool on android
> phone.
>
> The reason I don't want to AsyncTask is because I am going to create a
> service, and start threads from service, which means there is not much
> UI updates from task. However, asynctask has to been created and
> execute on UI thread.
>
> So I am going to create another different thread pool which will be
> used to manage this kind of threads. What I am worrying about is that
> if I create another thread pool with 5 core threads, would that be too
> much threads(10 core threads) running on the android? will that slow
> it down and cause bad performance?
>
> Thanks.

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

No comments:

Post a Comment