memory management - difference between drain and release -


i want know difference between drain , release in memory management..please me suitable example.

in garbage collected environment, release no-op. nsautoreleasepool therefore provides drain method in reference-counted environment behaves same calling release, in garbage collected environment triggers garbage collection (if memory allocated since last collection greater current threshold). typically, therefore, should use drain rather release dispose of autorelease pool.

source: http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/memorymgmt/articles/mmautoreleasepools.html


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -