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

    Sep 17, 2008 · What are the stack and heap? Where are they located physically in a computer's memory? To what extent are they controlled by the OS or language run-time? What is their scope? …

  2. When would I want to use a heap? - Stack Overflow

    Apr 14, 2009 · Besides the obvious answer of a Priority Queue, when would a heap be useful in my programming adventures?

  3. malloc - What is a Memory Heap? - Stack Overflow

    Feb 22, 2010 · A memory heap is a location in memory where memory may be allocated at random access. Unlike the stack where memory is allocated and released in a very defined order, individual …

  4. jvm - How to deal with "java.lang.OutOfMemoryError: Java heap space ...

    Here is an example of increasing maximum heap size of JVM, Also its better to keep -Xmx to -Xms ration either 1:1 or 1:1.5 if you are setting heap size in your java application.

  5. O que são e onde estão a "stack" e "heap"?

    O que são esses tais de stack e heap que tanto se fala em gerenciamento de memória? Isso realmente são porções da memória como algumas pessoas falam ou é apenas um conceito abstrato para …

  6. What do I use for a max-heap implementation in Python?

    Python includes the heapq module for min-heaps, but I need a max-heap. What should I use for a max-heap implementation in Python?

  7. heap - python, heapq: difference between heappushpop () and …

    I couldn't figure out the difference (other than ordinality of push/pop actions) between functions heapq.heappushpop () and heapq.heapreplace () when i tested out the following code. >>> from

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

    Sep 20, 2023 · Heap memory is where malloc() and friends get blocks of data from. It is allocated to the program by the operating system and is usually automatically deallocated when the program ends.

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

    Sep 19, 2008 · Use the heap for only allocating space for objects at runtime. If you know the size at compile time, use the stack. Instead of returning heap-allocated objects from a function, pass a …

  10. Heap Memory in C Programming - Stack Overflow

    The heap is part of your process's address space. The heap can be grown or shrunk; you manipulate it by calling brk(2) or sbrk(2). This is in fact what malloc(3) does. Allocating from the heap is more …