Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7596901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:02:00+00:00 2026-05-30T22:02:00+00:00

This should have an easy answer, yet I couldn’t find any. And since I’m

  • 0

This should have an easy answer, yet I couldn’t find any.
And since I’m still an android dummy I came here to ask you people.

I’ve been making this project that executes 10 AsyncTasks on the startup.
Each task contains 3 URLs that collect data there and do nothing important in the app (yet).

I also have 10 textviews which I use to keep track of the progress of the AsyncTasks.

When a task starts the appropriate textview is put on “Start”
When a task is progressing it sets its appropriate textview to “Downloading”
When a task is finished it sets its appropriate textview to “Finished”

This is what I observed and came to question about the AsyncTask.
When I start the app I notice 5 of the textviews being switched to the “Downloading” marker, so I see 5 AsyncTasks doing their job as they should. When done it starts up a new AsyncTask. Yet they never reach over that limit of 5.

What causes this limit of 5 AsynchTasks running at the same time?
Did I cause this in some file which I cannot find?
Is this a limit of android 2.3.3? Maybe a limit of the device I’m using to sim the app?

Can anyone elaborate for me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:02:01+00:00Added an answer on May 30, 2026 at 10:02 pm

    Yes, there’s a limit. AsyncTask is backed by a ThreadPoolExecutor with a core pool size of 5, but a maximum pool size of 128 (from 1.6 – 4.0.3), so really I would think you should see all 10 of yours run at once. You can’t change it though. If you really want to do something different (and I wouldn’t recommend it unless you have a very specific reason), you’ll have to do something custom with a larger pool size or just spin up a bunch of threads manually.

    Update:

    Here’s what the docs say:

    If there are more than corePoolSize but less than maximumPoolSize threads running, a new thread will be created only if the queue is full.

    So that’s why. Your queue isn’t full, so it just keeps it at the core pool size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be an easy one. I have a table like so: <table> <tr>
This seemed like it should be easy, but I have had trouble getting it
This should be straight forward for a guru. I don't have any code really
Seems like in Perl this should be easy or a module, but I have
I'm very new to linq so this should be pretty easy to answer, but
There appears to be no easy answer to this, but are there any assumptions
I have something which should be easy to answer for most of your I
This seems like it should be something easy, yet it is driving me mad!!
I have a question that really feels like I should have an easy answer
I am sure this is a pretty easy answer, but I have been pulling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.