Tuesday, July 16, 2013

Re: [android-developers] How to run Async tasks parallely..

You probably don't want to use a new thread if a task will suffice,
because AsyncTask takes care of many verbose implementation details
for you.

However, I also remember that (as Piren mentioned) tasks should run on
a threadpool starting with Donut. OP: how are you observing the
differences between serial and parallel? Maybe you're noticing a
scheduling bias in the output that is consistent across runs?

Kris


On Tue, Jul 16, 2013 at 8:30 AM, lokesh gupta <lokeshgupta85@gmail.com> wrote:
> Doesn't a new Thread solves your purpose?
>
>
> On Tue, Jul 16, 2013 at 3:08 PM, Ashish Sharma <ashish.acet@gmail.com>
> wrote:
>>
>> Hi,
>>
>> I have checked that two Async task nerver run parallely .
>> suppose i started two two async task parallely then second task run only
>> when first one finish..
>>
>> is there any way to to run async tasks parallely?
>> any other alternate way?
>>
>> --
>> --
>> 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
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
>
>
>
> --
> Thanks & Regards
> Lokesh Gupta
>
> --
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate