Re: Memory Management
Re: Memory Management
- Subject: Re: Memory Management
- From: Andreas Mayer <email@hidden>
- Date: Thu, 31 Jul 2003 16:14:02 +0200
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.