What is mark and sweep algorithm?



What is mark and sweep algorithm?..

Answer / Jitendra Kumar Sahu

Mark-and-sweep is a garbage collection algorithm used in memory management to identify and free up objects that are no longer being referenced by the program. It works by first 'marking' reachable objects, then 'sweeping' (deallocating) unreachable objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

Does objective c have multiple inheritance? Why not? How to imitate various inheritance?

1 Answers  


What is objective point of view?

1 Answers  


What is a block objective c?

1 Answers  


What is the purpose of the protocol?

1 Answers  


Can you retain delegates?

1 Answers  


What are the important data types found in objective-c?

1 Answers  


When should you call dealloc method?

1 Answers  


Is apple stopping supporting objective c?

1 Answers  


How do I create an objective c class in xcode?

1 Answers  


What is abi stability?

1 Answers  


What is posing in objective c?

1 Answers  


How do I create a bridge header in objective c?

1 Answers  


Categories