diode icon indicating copy to clipboard operation
diode copied to clipboard

AsyncTask.execute() is not really multi-threaded after Honeycomb

Open LiliWeiSE opened this issue 7 years ago • 1 comments

Another thing, I noticed AsyncTask.execute() is used in CommentsListActivity. For your information, the document specified that since honeycomb or API 11, the tasks will be executed on a single thread. Since there could be multiple tasks registered at the same time (at least two in MyLoginTask#onPostExecute), so using executeOnExecutor() may speed up the tasks and avoid potential blocking.

LiliWeiSE avatar Oct 19 '17 13:10 LiliWeiSE

This is useful info; thanks for reporting.

zagaberoo avatar Oct 19 '17 16:10 zagaberoo