In addition to their being multiple types of memory, there are also multiple ways of storing information in memory (in this case, main memory, or RAM). The first and simplest one is segmentation.

Using segmentation, process data is stored in blocks of contiguous, meaning adjacent or back-to-back, memory which vary in size. These blocks are called segments. When a process requests a piece of information from disk, a contiguous block of free memory must be found and then allocated (that is, have data written to it). If no block of memory is currently available, the process will wait for one before proceeding.

While this may be the simplest way to handle memory allocation, as we will discuss in the next exercise, segmentation carries with it some major efficiency concerns.


Click Next when you’re ready to move on to the next exercise.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?