O'Reilly logo
  • aiyaz pricus thinks this is interesting:

CountingTask tsk = new CountingTask();
tsk.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, id1);
CountingTask tsk2 = new CountingTask();
tsk2.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, id2);

From

Cover of Advanced Android™ Application Development, Fourth Edition

Note

asynctask.executor