Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Management



Am Donnerstag, 31.07.03 um 03:23 Uhr schrieb Marcel Weiher:

Reference counting is a form of garbage collection.

I don't think so.
Garbage collectors do use reference counting, yes. But reference counting alone is not garbage collection.

With garbage collection you usually have a separate thread that's responsible for cleaning up the no longer used objects (those with a reference count of zero). This bears a specific problem: You won't know in advance exactly when an object will be freed (whenever the garbage collector finds it).

This is different in Objective-C. Objects are freed instantly when their reference count reaches zero.


bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Memory Management (From: Marcel Weiher <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.