Contiguous Memory allocation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Azaz ul haq
    New Member
    • Dec 2007
    • 4

    Contiguous Memory allocation

    Hello!

    What is meant by contiguous memory allocation in C++?
  • Andr3w
    New Member
    • Nov 2007
    • 42

    #2
    Maybe this will clear you mind on what contiguous memory allocation is in general, it's not a specific topic only on C++

    Lecture notes

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      That link pertains to processes.

      Contiguous memory allocation means the allocation is unbroken, that is, it is not a series of random items connected in a way such as you might find using a linked list.

      Arrays in C and C++ use contiguous memory allocation in order that pointer arithmetic can be used to acess the various elements.

      Comment

      • Andr3w
        New Member
        • Nov 2007
        • 42

        #4
        it has a section in the start that says all about contiguous memory allocation, though ;)
        Last edited by sicarie; Jan 2 '08, 03:34 PM. Reason: You forgot the last half of 'though'. (Complete English, please ;)

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          The lecture notes are about processes.

          I was referring to contiguous memory allocation within a process as opposed to a linked list approach.

          Comment

          • Andr3w
            New Member
            • Nov 2007
            • 42

            #6
            I see, but as I said I think it's a general topic in all languages and applications of computers. That's why I said too see the general basic-low level information that are mentioned in that lecture notes. Anyway, good point ;). Sorry sicarie I'll be carefull next time ;)

            Comment

            Working...