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 trialPallavi Polisetty
Courses Plus Student 1,423 Points--------- tells the compiler that you are not using multi-threading for your property.
i have written atomic for this because non atomic property can be used as multi threading
it is giving me the wrong when i gave atomic, please clarify me on this
3 Answers
Stone Preston
42,016 Pointsnonatomic tells the compiler you AREN'T using multi threading, atomic tells it you ARE using mulithreading
Here is a SO post that might help
RASHU BHATNAGAR
Courses Plus Student 2,669 PointsWe always define the atomic property when we are working in a multithreaded environment and and nonatomic when we are not.....
Abdoulaye D.
2,396 Pointsnonatomic tells the compiler that we are not using multi-threading.
Pallavi Polisetty
Courses Plus Student 1,423 PointsPallavi Polisetty
Courses Plus Student 1,423 Pointsclarified preston, i thought in the reverse way. Thanks.