lunchScreen/Interview_Questions

Heap 메모리는 무엇이고 사용하는 이유는 무엇인가

Opened this issue · 1 comments

Heap 메모리는 무엇이고 사용하는 이유는 무엇인가
  • Heap 영역
    - 동적 할당(malloc)하는 영역
    - reference type을 저장
    - Run time에 결정됨
    - non thread-safe
    - ARC에 의해 관리됨
  • Stack은 함수가 끝날 때까지 유지되지만, Heap은 Programmer가 원할 때 언제나 할당하거나 해제할 수 있습니다.