Computer Memory ? Different Types of Memory in Computer With Examples
Computer Memory ? Different Types of Memory in Computer With Examples
Computer Memory ? Different Types of Memory in Computer With Examples
COMPUTER MEMORY
The answer may be a bit more involved than you would expect,
because there are a perhaps surprisingly large number of
different kinds of storage devices. The outline below seeks to
identify these and to provide a logical way of organizing them.
Secondary Storage
However, it often happens that RAM is not large enough to fit all
running programs and their data. To alleviate this situation, many
modern operating systems implement virtual memory, which
basically means that some secondary storage (typically some
segment of a hard disk) is used for holding portions of
programs/data that, logically speaking, are considered to be in
RAM. Whenever the CPU attempts to fetch an instruction or data
item from virtual memory, first it must be confirmed that that
instruction or data item is actually in RAM. If it is, access
proceeds normally. If not, whatever "page" of virtual memory
holds the desired item must first be "swapped" into RAM (from the
disk), replacing some page of data that was already there, which
itself gets written to the disk. The effect of virtual memory, then, is
to, in a sense, make RAM seem much larger than it actually is.