diff --git a/.zk/notebook.db b/.zk/notebook.db index d2fc3c1..4cbc420 100644 Binary files a/.zk/notebook.db and b/.zk/notebook.db differ diff --git a/zk/Heap_memory.md b/zk/Heap_memory.md index c03a6ea..f6cb2c1 100644 --- a/zk/Heap_memory.md +++ b/zk/Heap_memory.md @@ -1,10 +1,15 @@ --- id: 18bl title: Heap_memory -tags: [] +tags: [memory] 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 diff --git a/zk/Stack_memory.md b/zk/Stack_memory.md index 9310fb7..cdc4f61 100644 --- a/zk/Stack_memory.md +++ b/zk/Stack_memory.md @@ -9,17 +9,18 @@ created: Tuesday, April 16, 2024 ## Summary -- Along with heap memory, programs make use of _stack memory_ during the runtime - of programs. +- Along with [[Heap_memory|heap memory]] heap memory, programs make use of + _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 within a given scope: control flow, local variables, returned value. - Uses a LIFO data-structure -- Best suited for small-sized singular values rather than large or complex data - types - ## Stack memory Similarly to the [[Stacks|stack data structure]], it works on the basis of LIFO: