About 112,000 results
Open links in new tab
  1. What and where are the stack and heap? - Stack Overflow

    Sep 17, 2008 · What makes one faster? The stack is faster because the access pattern makes it trivial to allocate and deallocate memory from it (a pointer/integer is simply incremented or decremented), …

  2. c++ - Stack Memory vs Heap Memory - Stack Overflow

    Stack and heap memory is the abstraction over the memory model of the virtual memory ( which might swap memory between disk and RAM). So both stack and heap memory physically might be RAM or …

  3. c# - Memory allocation: Stack vs Heap? - Stack Overflow

    I am getting confused with memory allocation basics between Stack vs Heap. As per the standard definition (things which everybody says), all Value Types will get allocated onto a Stack and Reference

  4. Stack, Static, and Heap in C++

    Nov 2, 2015 · You run out of memory when the stack meets the dynamic allocator somewhere in the middle (but refer to physical versus virtual memory and fragmentation). Multiple threads will require …

  5. When is it best to use the stack instead of the heap and vice versa?

    Sep 19, 2008 · If you use heap for the object, you get the as much memory the OS can provide, much larger than the stack, but then again you must make sure to free the memory when you are done. …

  6. a stack vs the stack and a heap vs the heap

    May 7, 2014 · The Heap is a place in the RAM where memory is stored, if it runs out of space, the OS will assign it more. For an object to be stored on the Heap it needs to be told by using the, new, …

  7. Confusion about heap, stack and memory in general in C

    Sep 20, 2023 · Stack-This is the section of memory that stores all the variables and other temporary data. I'm more confident about this and there isn't much confusion here. Heap-From what I know, it is …

  8. Which is faster: Stack allocation or Heap allocation

    Oct 2, 2008 · 550 Stack allocation is much faster since all it really does is move the stack pointer. Using memory pools, you can get comparable performance out of heap allocation, but that comes with a …

  9. Does Python have a stack/heap and how is memory managed?

    Jan 27, 2013 · How are variables and memory managed in Python? Does it have a stack and a heap and what algorithm is used to manage memory? Given this knowledge are there any …

  10. c - memory allocation in Stack and Heap - Stack Overflow

    Both stack and heap are limited by the amount of system memory. Programs run out of stack before they run out of heap because the stack sizes is typically orders of magnitude smaller than the heap.