Developer community
0 votes
asked by Geek (15.3k points) 17 42 61 | 176 views

1 Answer

0 votes
An advantage of this scheme is that it can run in small chunks of time closely linked with the execution of the program. These characteristic makes it particularly suitable for real-time environments where the program can't be interrupted for very long time. A disadvantage of reference counting is that it does not detect cycles. A cycle is two or more objects that refer to one another. Another disadvantage is the overhead of incrementing and decrementing the reference count each time. Because of these disadvantages, reference counting currently is out of favor.
answered by Guru (39.1k points) 10 22 35

Related questions

0 votes
1 answer
0 votes
1 answer
asked by smith Geek (15.3k points) 17 42 61 | 40 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 24 views
0 votes
2 answers
asked by keem Expert (13.2k points) 27 42 59 | 36 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers


10.7k users

3,751 questions
4,046 answers
10,709 users