AsyncTask thread still there after execute, is that normal?

前端 未结 3 533
无人共我
无人共我 2021-01-12 20:21

when I use AsyncTasks checking in the DDMS, the thread persist in memory as waiting thread after the onPostExecute() method, is that normal?. Here is a simplified Activity t

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 20:52

    yep this avoids the overhead of killing and restarting the thread when you submit the next AsyncTask

    if you submit another AsyncTask after the first is completed the same thread will be reused for it

提交回复
热议问题