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 trial
Carla Brooks
803 PointsBackground Thread
What do you think about creating a background thread that have an inner class with seven methods that need to be executed in the background, or it shoud be better to put each method on a separate thread? Does the first aproach overloads the thread and slows the app, or it doesn´t affect because eventually is in the background?
I would like to know the pros and cons if is possible also a little bit about the use of atomic variables on it.
Finally, where should I put the variables that are used in a thread, it has to be inside the thread or can it be initialize outside the thread?