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

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -