* Soft reference (from wiki)
A soft reference is one of the strengths or levels of 'non strong' reference defined in the Java programming language, the others being weak and phantom.
The garbage collector will always collect weakly referenced objects, but will only collect softly referenced objects when its algorithms decide that memory is low enough to warrant it. Soft and weak references provide two quasi-priorities for non-strongly referenced objects.
Soft references may be used, for example, when writing a cache: weakly referenced objects may disappear too quickly to make the cache useful.
* Strong reference (from wiki)
In computer programming, a strong reference is a normal reference that protects the referred object from collection by a garbage collector. The term is used to distinguish the reference from weak references.
* Weak reference (from wiki)
In computer programming, a weak reference is a reference that does not protect the referent object from collection by a garbage collector. An object referenced only by weak references is considered unreachable (or "weakly reachable") and so may be collected at any time. Weak references are used to avoid keeping memory referenced by unneeded objects. Some garbage-collected languages feature or support various levels of weak references, such as Java, C#, Python, Perl or Lisp.
* Phantom reference (from wiki)
A phantom reference is one of the strengths or levels of 'non strong' reference defined in the Java programming language; the others being weak and soft. An object is phantomly referenced after it has been finalized, but before its allocated memory has been reclaimed.(reclaim : 개선하다, 개간하다, 이용하다, 재생하다)
In computer programming, a weak reference is a reference that does not protect the referent object from collection by a garbage collector. An object referenced only by weak references is considered unreachable (or "weakly reachable") and so may be collected at any time. Weak references are used to avoid keeping memory referenced by unneeded objects. Some garbage-collected languages feature or support various levels of weak references, such as Java, C#, Python, Perl or Lisp.
* Phantom reference (from wiki)
A phantom reference is one of the strengths or levels of 'non strong' reference defined in the Java programming language; the others being weak and soft. An object is phantomly referenced after it has been finalized, but before its allocated memory has been reclaimed.(reclaim : 개선하다, 개간하다, 이용하다, 재생하다)
댓글 없음:
댓글 쓰기