Memory - Study Notes
Memory - Study Notes
COMPUTER
Copyright © 2014-2020 TestBook Edu Solutions Pvt. Ltd.: All rights reserved
Download Testbook App
Memory
A memory is acts like a human brain. It is available to hold data and instructions.
Computer memory is the type of storage space built in the computer, where data is
to be processed and instructions needed for processing are stored. The memory is
categorized into high number of small sections called cells. Every memory location
or cell consists a unique address that varies from 0 to memory size -1. For instance,
if the computer comprised of 64k words, then this memory entity has 64 * 1024 =
65536 memory locations. The memory address of these locations differs from 0 to
65535.
Cache Memory
Cache memory is the most high speed semiconductor memory type which can speed
up the working of CPU. This works like a buffer between the main memory and the
CPU. This memory is available to store those sections of data and program
which are very frequently required by the CPU. The sections of data and programs are
transferred from the disk to cache memory through the operating system, from where
the CPU has accessibility of them.
Advantages
Cache memory is faster than main memory.
It stores the program that can be executed within a short period of time.
Disadvantages
Cache memory has limited capacity.
It is very expensive.
Primary Memory
Primary memory keeps only those data and instructions on which the computer is
currently processing. It has a fixed capacity and data is lost when power is
disconnected. It is usually made up of semiconductor ICs and registers. These
memories are not as fast as registers. The fetched data and instruction going to be
processed resides in the main memory. It is categorized in 2 subcategories RAM
and ROM.
Secondary Memory
This kind of memory is also called as external memory or non-volatile memory. It
works slower as compared to the main memory. These are installed for holding data/
information permanently. CPU does not access these memories directly, rather they
are accessed through input-output routines. The data hold in secondary memories
are transferred to the main memory for, and then the CPU can access that data. For
instance, disk, CD-ROM, DVD, etc.
RAM is volatile type of memory, i.e. data stored in it is dumped when we power off
the computer or if there is a power failure situation. Hence, it is recommended to
have Uninterruptible Power System (UPS) which can provide enough backup power
as to store data before shut down. The RAM is small in terms of its physical size as
well as in terms of the amount of data it can store.
In the matrix, there exists an extra space, that is why SRAM consists of high number
of chips as compared to the DRAM for the same capacity of storage space, making
the manufacturing costs comparatively higher. That is why SRAM is utilized as
cache memory and has very fast accessing capability.
DRAM is installed for most system memory as it is comparatively cheap and small.
All DRAMs consists of memory cells, which are composed of single capacitor and
single transistor.
Advantages of ROM
Non-volatile in nature
Cannot be accidentally changed
Cheaper than RAMs
Easy to test
More reliable than RAMs
Static and do not require refreshing
Contents are always known and can be verified
Nibble
2 A group of 4 bits is called nibble.
Byte
3 A group of 8 bits is called byte. A byte is the smallest unit, which can represent a data
item or a character.
Word
A computer word, like a byte, is a group of fixed number of bits processed as a unit,
which varies from computer to computer but is fixed for each computer.
4 The length of a computer word is called word-size or word length. It may be as small
as 8 bits or may be as long as 96 bits. A computer stores the information in the form
of computer words.
Kilobyte
Kilobyte can be defined as one of the many multiples of the byte memory units. The
prefix kilo- , normally, represents the unit to be ‘Kilo’ and it comes in multiples of
5 ‘1000’. Though in terms of international standards kilo means 1000, in a typical
memory unit, the binary digit are seen as Base 2 and so the ‘Kilo’ here means 1024
of binary digits or bits. In short, 1Kilobyte or 1KB is equal to the 1024 bits or binary
digits.
Megabyte
Similar to the Kilobyte memory unit, the megabyte memory unit is used when the bits
are large in number and when it makes it easy to say it the number to be in lesser
6 length. That is, in international standards the prefix ‘mega-‘ is used for showing the
10^6 or the 1000000. This also means that a typical MB is shown with Base 2, and
so the 1MB or the 1 Megabyte equals to the 1048576 bytes of the memory unit. It can
also be calculated as (1024)^2bytes or the 2^20 bytes.
Gigabyte
The Gigabytes are used to represent the data to be in multiples of 10^9 or
7 1000000000 binary digits, and when the memory unit is in terms of Base 2 then the
storage space is calculated as 2^30 bytes or as 1024^3 bytes. In other words, the
memory units used by the processor that runs on the Base 2 are termed as the Giga-
bytes and is equal to the 1073741824 bytes.
Terabyte
Terabyte are applied when the memory requirement is as high as the 2^40,
8 that is the binary digits exponential to the number 40. It can also be seen as
an equal to the 1024 terabytes and is represented as TB. Or other words
equals to 10^12 bytes in international standards and that can also be termed
as the trillion bytes.
Petabyte
Petabyte can be defined as a memory unit that represents the higher multiples
9. of bytes, next to the Terabyte that comes in PB units. It is equal to the 10^15
bytes in terms of the international standards, or the 1024^5 bytes when the
bytes come with the Base 2.
Exabyte
Exabyte is a memory unit that is equal to the 10^18 equivalent in the interna-
tional standards scale, and the same is equal to the 1024^6 for the memory
10 units that come in the form of Base 2. The unit terms of the Exabyte are EB,
and this EB is the same as the 1 million TB or the 1 billion GB or the 1 thou-
sand PB.
Zettabyte
Similar to other byte sized memory units, Zettabyte can be seen as an equiva-
lent to 10^21, according to the ‘zetta’ representation in terms of the interna-
11 tional standards. The Zettabyte or the ZB also can be seen as 1 thousand of
the EB, 1 million PB, 1 billion TB, 1 trillion GB, etc.
Yottabyte
As the name says, the Yottabyte unit or the YB represents another memory
unit for the bytes to be in multiples of the other lower byte units or even the
12. bytes. In international standards, it is equal to the 10^24, and for base 2 byte
units the YB is also equal to 1024^8, 1 thousand ZB, 1 trillion TB, etc.