问题
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 IntentService
s 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