multithreading - If an Android service is killed, are threads spawned by the service killed as well? -



multithreading - If an Android service is killed, are threads spawned by the service killed as well? -

suppose implement service starts threads performing long-running operations. if service gets killed, automatically kill off running threads well?

thanks.

a service runs in same process app unless specify otherwise in manifest. if it's killed (i.e., crashes) threads belonging process disappear, don't think that's you're asking. threads started service not terminated automatically if service stopped in normal way, unless service running in process and process terminated. may not be. android tends maintain processes around after activity or service running in them has been stopped , destroyed.

android multithreading service

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -