Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Designing Interviews:2D Artist2D Game Graphic Designer3-D Animation3D Artist3D Game Modeler3D Graphics3D Illustrator3D Interior Designer3D Maya3D ModelingAssistant Design EngineerAutomobile DesignerDesign EngineerFashion DesignerFreelance Textile DesignerItalian Kitchen DesignerLogo DesignerMobile Apps DesignerPhysical Product DesignerProduct DesignerTextile Dyeing SpecialistUX DesignerWeb Designing
Copyright © 2018. All Rights Reserved
UX Designer Interview Question:
Tell me the difference between atomic and nonatomic synthesized properties?
Submitted by: MuhammadAtomic and non-atomic refers to whether the setters/getters for a property will atomically read and write values to the property. When the atomic keyword is used on a property, any access to it will be “synchronized”. Therefore a call to the getter will be guaranteed to return a valid value, however this does come with a small performance penalty. Hence in some situations nonatomic is used to provide faster access to a property, but there is a chance of a race condition causing the property to be nil under rare circumstances (when a value is being set from another thread and the old value was released from memory but the new value hasn't yet been fully assigned to the location in memory for the property).
Submitted by: Muhammad
Submitted by: Muhammad
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.