This question already has an answer here:
You probably want to execute all Asynctasks at the same time in ThreadPool
AsyncTask.THREAD_POOL_EXECUTOR is a constant
Executor. If you’re not satisfied on AsyncTask’s Thread pool. You can create your own thread pool by doing this.
Executor myThreadPool = Executors.newFixedThreadPool(numOfPools);
numOfPools is taken from available processors by
It is still up to you how many threads you want. Be aware of battery use. More computation power, more battery. Just a reminder.