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?
Asked
Active
Viewed 1,047 times
2

Alexander Zhak
- 9,140
- 4
- 46
- 72

Karim Varela
- 7,562
- 10
- 53
- 78
-
Never tried it before, why not just try it? – zgc7009 Sep 16 '14 at 22:55
-
1I'm lazy. I just tried it and they do indeed run in parallel. I'll accept CommonsWare's answer in a minute ... – Karim Varela Sep 16 '14 at 23:02
1 Answers
5
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.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491