Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

garbage collection vs arc

Posted on 2012-12-21
4
Medium Priority
?
709 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 83

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 83

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

704 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