Autosave: 2024-04-20 13:30:05
This commit is contained in:
parent
d707b71077
commit
bdada125e7
3 changed files with 14 additions and 8 deletions
BIN
.zk/notebook.db
BIN
.zk/notebook.db
Binary file not shown.
|
@ -1,10 +1,15 @@
|
||||||
---
|
---
|
||||||
id: 18bl
|
id: 18bl
|
||||||
title: Heap_memory
|
title: Heap_memory
|
||||||
tags: []
|
tags: [memory]
|
||||||
created: Saturday, April 20, 2024
|
created: Saturday, April 20, 2024
|
||||||
---
|
---
|
||||||
|
|
||||||
# Heap_memory
|
# Heap memory
|
||||||
|
|
||||||
## Related notes
|
## Summary
|
||||||
|
|
||||||
|
- Along with [[Stack_memory|Stack memory]], programs make use of _heap memory_
|
||||||
|
during runtime.
|
||||||
|
|
||||||
|
- [ ] ## Related notes
|
||||||
|
|
|
@ -9,17 +9,18 @@ created: Tuesday, April 16, 2024
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
- Along with heap memory, programs make use of _stack memory_ during the runtime
|
- Along with [[Heap_memory|heap memory]] heap memory, programs make use of
|
||||||
of programs.
|
_stack memory_ during runtime.
|
||||||
|
- [ ]
|
||||||
|
- Best suited for small-sized singular values that are temporary/ephemeral
|
||||||
|
rather than large or complex data types that need to persist for a longer
|
||||||
|
time.
|
||||||
|
|
||||||
- Specifically used to keep track of memory used during function executions
|
- Specifically used to keep track of memory used during function executions
|
||||||
within a given scope: control flow, local variables, returned value.
|
within a given scope: control flow, local variables, returned value.
|
||||||
|
|
||||||
- Uses a LIFO data-structure
|
- Uses a LIFO data-structure
|
||||||
|
|
||||||
- Best suited for small-sized singular values rather than large or complex data
|
|
||||||
types
|
|
||||||
|
|
||||||
## Stack memory
|
## Stack memory
|
||||||
|
|
||||||
Similarly to the [[Stacks|stack data structure]], it works on the basis of LIFO:
|
Similarly to the [[Stacks|stack data structure]], it works on the basis of LIFO:
|
||||||
|
|
Loading…
Add table
Reference in a new issue