Can multiple Android IntentServices run at the same time?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 06:19:11

问题


From what I understand, an IntentService can only handle one Intent at a time as it shares a worker thread to do all of its work. But if I have multiple IntentServices in my app, can they run in parallel, or do they all share the single worker thread as well?


回答1:


But if I have multiple IntentServices in my app, can they run in parallel

If you mean that you have multiple subclasses of IntentService, they should be able to run in parallel.



来源:https://stackoverflow.com/questions/25879610/can-multiple-android-intentservices-run-at-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!