Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMert Kahraman
12,118 PointsIs main thread shared?
According to this quiz answer information: "By default an app has one Process and one main Thread, and all code execution happens on this main Thread."
A- Does this mean that each application process creates it's own main thread, so there are many main threads? B- Or does this mean each application process shares a portion or uses/utilizes the main thread of the Android OS that is shared across all apps?
1 Answer
Kris B
11,583 PointsYour A answer is correct. Each application creates its own main thread. Different operations within the same application run on that applications single main thread. However, you can create additional threads for different operations within the same application.
Source: https://developer.android.com/guide/components/processes-and-threads