Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Reference counting?

Dikenal juga sebagai: reference count

Definition 9.3 University Computer Science — Year 3 · Bab 9 — Memory Management and Garbage Collection

Reference counting stores in each object its reference count, the number of references to it held by variables and by other objects. Every copy of a reference increments the count of its target, every overwritten or discarded reference decrements it, and an object whose count reaches 0 is freed at once, decrementing the counts of the objects it refers to.

Baca dalam konteks →