garbage collection

    [Programming] Garbage Collection (GC)

    Garbage collection (GC)은 Programming에서 memory를 관리하는 기법 중의 하나임. Dynamical Memory Allocation에서 더 이상 사용되지 않는 object 또는 data에 할당된 memory를 자동으로 회수하는 Process를 의미한다. GC를 지원하지않는 C, C++ 등의 프로그래밍 언어에서는 일반적으로 programmer가 memory의 할당과 해제를 explicitly(명시적으로) 처리해야하며, 이를 잘못 수행하여 발생하는 memory leakage는 100% programmer의 책임이었음. Pointer와 함께 이 명시적인 memory 관리 는 Programmer에게 강력한 권한을 주면서 동시에 미숙한 programmer들의 잘못된 처리로 인해 프로..