Avatar of kblau
kblau
 asked on

garbage collection vs arc

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?
Microsoft Legacy OSApple OS

Avatar of undefined
Last Comment
kblau

8/22/2022 - Mon
David Johnson, CD

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

ARC does have problems in multithreaded applications/environments
ASKER CERTIFIED SOLUTION
kblau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
David Johnson, CD

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

ASKER
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
Your help has saved me hundreds of hours of internet surfing.
fblack61