Solved

garbage collection vs arc

Posted on 2012-12-21
4
652 Views
Last Modified: 2013-01-05
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?
0
Comment
Question by:kblau
  • 2
  • 2
4 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 38716135
ARC is done at runtime
Garbage Collection (wikipedia)
Automatic Reference Counting (wikipedia)

ARC does have problems in multithreaded applications/environments
0
 
LVL 5

Accepted Solution

by:
kblau earned 0 total points
ID: 38723430
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
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 38728575
Microsoft has abandoned reference counting in favor of tracing garbage collection for the .NET Framework. http://bit.ly/UrDtcZ
0
 
LVL 5

Author Closing Comment

by:kblau
ID: 38746499
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
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now