garbage collection vs arc

kblau
kblau used Ask the Experts™
on
do i understand this correctly,  arc(automatic reference counting) in ios objective-c is better than garbage collection because it is at compile time not at runtime that slows down apps.  and a)arc is for phones only else arc would be used instead of garbage collection on personal computers as well, so for instance mac os X lion uses garbage collection and windows for pcs uses garbage collection while iphones use arc and microsoft phones use arc? if microsoft phones don't use arc, why done they?

b)why doesn't microsoft just use arc instead of garbage collection in general.  have the compiler scan through the code and insert release statements where necessary.  this probably isn't possible right?  why is it possible on the ios phone.  is microsoft lacking?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
ARC is done at runtime
Garbage Collection (wikipedia)
Automatic Reference Counting (wikipedia)

ARC does have problems in multithreaded applications/environments
Commented:
Wikipedia may define arc as hapenneng at runtime.  The compile time arc that I am referring
To happens at compile time for iPhones.  The compiler sticks in release statement in the code
Where appropriate before the code is run.  Dpes cause multithreaded problems?  Does Microsoft use compile time arc in any of there os.  Thanks
Top Expert 2016

Commented:
Microsoft has abandoned reference counting in favor of tracing garbage collection for the .NET Framework. http://bit.ly/UrDtcZ

Author

Commented:
No one can compare apples iOS objective c compile time automatic ref counting to any Microsoft os (especially phone os) so accepting my comment as solution

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial