Memory Management at Runtime
photo by https://tinyurl.com/mvsvrvws

Memory Management at Runtime

In computing, memory is a device or system that is used to store information for immediate use in a computer or related computer hardware and digital electronic devices. The term memory is often synonymous with the term primary storage or main memory. An archaic synonym for memory is store. Wikipedia

Classes of Memory

Generally, there are 3 classes of Memory

a. Static memory.

Allocated for the entire lifetime of the program.

b. Automatic memory.

Allocated and freed automatically when functions or methods are executed.

c. Dynamic memory.

Explicitly allocated by the program and freed explicitly—or by an automatic program called the GARBAGE COLLECTOR.

Rules

  • Top Level variables and static fields belong to Static Memory.
  • Function Args and local Variables belong to automatic memory.
  • Memory is explicitly allocated using the NEW operator, belonging to dynamic memory.

The most important element of a programming language runtime


                                                    is memory         


Building Software that People ♥️

To view or add a comment, sign in

More articles by George Wanjohi

  • Mauritius: From Indentured Labour to a Smart Nation — A Journey of Growth, Unity, and Progress

    Photo by Teodor Kuduschiev on Unsplash As Mauritius prepares to celebrate Indentured Labourers’ Day on November 2nd…

  • The Power of Records Composition in Functional Programming

    Functional Programming (FP) emphasizes immutability, pure functions, and declarative coding. Among its powerful…

  • Solar for Africa

    Africa is the worlds second largest and second most populous continent after Asia in both cases. It is about 30.

  • Accounting: The great divide.

    Among other routines, managers are inherently accountable for most of their departmental/business finances. Provided…

  • Strings Revisited

    “Ten, nine, Ignition Sequence Start, six, five, four, three, two, one, zero. We have a light off! Lift off…”, Strings…

  • Execution Stacks and when they Overflow

    In computer science, a thread of execution is the smallest sequence of programmed instructions that can be managed…

  • Why the Soviet Computer Failed

    "In 1986, the Soviet Union had slightly more than 10,000 computers. The Americans had 1.

  • Building a Reading Culture.

    This being the internet, the above post is no longer available. Did I not read the terms and conditions? The research…

  • Units of Measure

    Speed/ Velocity is calculated from distance and time, both of these are numerical figures. To avoid mixups, we have…

  • What is 0.1 + 0.7 in JavaScript?

    If your answer to 0.7 + 0.

Explore content categories