|
- An advantage of this schema is that it can run in small chunks of time closely interwoven with the execution of the program.
-
This characteristic makes it particularly suitable for real time environments where the program can't be interrupted for very long.
-
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, references counting currently is out of favor.
|