About 19,800,000 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 …

  2. What are the -Xms and -Xmx parameters when starting JVM?

    Jun 11, 2024 · The flag Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM), while Xms specifies the initial memory allocation pool. This means that your …

  3. What is the use of the Heap data structure? - Stack Overflow

    A heap must have each node satisfying the heap property, the max-heap property is that for every node i other then the root, Heap [Parent (i)] >= Heap [i] So at each node, the higher nodes …

  4. Which is faster: Stack allocation or Heap allocation

    Oct 2, 2008 · Stack allocation will almost always be as fast or faster than heap allocation, although it is certainly possible for a heap allocator to simply use a stack based allocation …

  5. algorithm - Search an element in a heap - Stack Overflow

    You need to search through every element in the heap in order to determine if an element is inside. One optimization is possible, though (we assume a max heap here). If you have …

  6. 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 …

  7. heap - How can I implement decrease-key functionality in …

    Sep 23, 2009 · To implement "decrease-key" effectively, you'd need to access the functionality "decrement this element AND swap this element with a child until heap condition is restore". In …

  8. 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 …

  9. 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?

  10. jvm - How to get a thread and heap dump of a Java process on …

    Feb 11, 2022 · Heap dump = memory contents for the JVM process output to a binary file. To take a thread dump on Windows, CTRL + BREAK if your JVM is the foreground process is the …