Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android main thread - is it shared with other apps

Imagine we have two apps opened at the same time (like how samsung splits the screen and allows two apps to run at the same time). Do these two apps share the main thread ? My question really is does each app opened get its own main thread ? or is it one thread that they all share ?

like image 590
j2emanue Avatar asked Feb 23 '26 23:02

j2emanue


1 Answers

Do these two apps share the main thread ?

Not normally, as normally they are in separate processes.

My question really is does each app opened get its own main thread ?

Each process gets its own main thread. Each app gets its own individual process by default.

like image 84
CommonsWare Avatar answered Feb 27 '26 00:02

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!