Solved

garbage collection vs arc

Posted on 2012-12-21
4
665 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 80

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 80

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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). …

740 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