• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory Management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

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

  • Prev by Date: Re: Using HTTPS in Cocoa/Java ?
  • Next by Date: Re: Dragging an item to a folder in the Dock
  • Previous by thread: Re: Memory Management
  • Next by thread: Re: Memory Management
  • Index(es):
    • Date
    • Thread