Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can DIFFERENT IntentServices run in parallel?

Tags:

android

Im having a little difficulty understanding one rule about IntentServices.

From Creating a Background Service :

Work requests run sequentially. If an operation is running in an IntentService, and you send it another request, the request waits until the first operation is finished.

I dont understand if this implies to different calls to the SAME IntentService, or even to different IntentServices.

Help will be appreciated.

like image 418
AsafK Avatar asked May 19 '14 15:05

AsafK


1 Answers

Let's say you start an IntentService, and it is performing a network request (immediately). You now request the IntentService to perform another task. This time, instead of immediately performing the network call, it will wait for the previous request to finish if it didn't. This applies for the SAME IntentService.

If you create another IntentService it will perform the first request immediately, but not subsequent requests.

like image 199
Emmanuel Avatar answered Sep 26 '22 16:09

Emmanuel