Lect 2 Unit 2
Lect 2 Unit 2
Computer memory is the storage space in the computer, where data is to be processed and
instructions required for processing are stored.
The memory is divided into large number of small parts called cells
If the computer has 64k words, then this memory unit has 64 * 1024 = 65536 memory locations.
Volatile and Non-Volatile Memory are both types of computer memory.
Volatile Memory is used to store computer programs and data that CPU needs in real time and
is erased once computer is switched off.
Where as Non-volatile memory is static and remains in the computer even if computer is
switched off. ROM and HDD are non-volatile memory.
o. Key Volatile Memory Non-Volatile Memory
Data Retention Data is present till power supply is present. Data remains even after power supply is not
1
present.
2 Persistence Volatile memory data is not permanent. Non-volatile memory data is permanent.
3 Speed Volatile memory is faster than non-volatile memory. Non-volatile memory access is slower.
Storage Volatile memory less storage capacity. Non-Volatile memory like HDD has very high
7
storage capacity.
Impact Volatile memory such as RAM is high impact on Non-volatile memory has no impact on system's
8
system's performance. performance.
9 Cost Volatile memory is costly per unit size. Non-volatile memory is cheap per unit size.
Read Only Memory (ROM)
PROM (Programmable read-only memory) – It can be programmed by the user. Once programmed,
the data and instructions in it cannot be changed.
EPROM (Erasable Programmable read-only memory) – It can be reprogrammed. To erase data from
it, expose it to ultraviolet light. To reprogram it, erase all the previous data.
EEPROM (Electrically erasable programmable read-only memory) – The data can be erased by
applying an electric field, with no need for ultraviolet light. We can erase only portions of the chip.
MROM(Mask ROM) – Mask ROM is a kind of read-only memory, that is masked off at the time of
production. Like other types of ROM, mask ROM cannot enable the user to change the data stored in it.
If it can, the process would be difficult or slow.
Random-Access Memory (RAM) / Primary Memory / Main Memory
Random-access memory (RAM) is a form of computer memory that can be read and changed in
any order, typically used to store working data and machine code. A random-access memory
device allows data items to be read or written in almost the same amount of time irrespective of the
physical location of data inside the memory
Purpose of RAM
• Random Access
1 GigaByte (GB) memory has 48 billion
transistors.
Static Random-Access Memory (static RAM or SRAM)
A flip-flop for a memory cell takes four or six transistors along with some wiring, but never has to
be refreshed.
Is a type of random-access semiconductor memory that stores each bit of data in a memory cell,
usually consisting of a tiny capacitor and a transistor, both typically based on metal-oxide-
semiconductor (MOS) technology.
The capacitor can either be charged or discharged; these two states are taken to represent the
two values of a bit, conventionally called 0 and 1.
The electric charge on the capacitors gradually leaks away; without intervention the data on the
capacity would soon be lost.
To prevent this, DRAM requires an external memory refresh circuit which periodically rewrites
the data in the capacitors, restoring them to their original charge.
EDO DRAM: Extended data-out dynamic random access memory does not wait for all of the processing of the
first bit before continuing to the next one. As soon as the address of the first bit is located, EDO DRAM begins
looking for the next bit. It is about 5-20 percent faster than FPM DRAM. Maximum transfer rate to L2 cache is
approximately 264 Mbps.
SDRAM: Synchronous dynamic random access memory takes advantage of the burst mode concept to greatly
improve performance. It does this by staying on the row containing the requested bit and moving rapidly through
the columns, reading each bit as it goes. The idea is that most of the time the data needed by the CPU will be in
sequence. SDRAM is about 5 percent faster than EDO RAM and has a transfer rate of 0.8-1.3 mega-transfers
per second (MT/s). It was developed in 1988.
Refers to any non-volatile storage device that is internal or external to the computer.
A secondary storage device is also known as an auxiliary storage device, backup storage
device, tier 2 storage, or external storage.
Computers use main memory such as random access memory (RAM) and cache to hold data that
is being processed. However, this type of memory is volatile, and it loses its data when the
computer is switched off. General-purpose computers, such as personal computers and tablets,
need to store programs and data for later use.
That's why secondary storage is needed to keep programs and data long term. Secondary storage
is non-volatile and able to keep data as long term storage. They are used for various purposes
such as backup data used for future restores or disaster recovery, long-term archiving of data that
is not frequently accessed, and storage of non-critical data in lower-performing, less expensive
drives.
Characteristics of Secondary Storage Devices
RAM provides a much faster-accessing speed to Secondary memory is slower in data accessing. Typically
data than secondary memory. Computers can primary memory is six times faster than secondary
quickly process data by loading software programs memory.
and required files into primary memory (RAM).
Primary memory is volatile and gets completely Secondary memory provides a feature of being non-
erased when a computer is shut down. volatile, which means it can hold on to its data with or
without an electrical power supply
Central Processing Unit
Computer's central processing unit (CPU) is the portion of a computer that retrieves and executes
instructions.
A central processing unit (CPU), also called a central processor, main processor or
just processor, is the electronic circuitry that executes instructions comprising a computer program.
The CPU performs basic arithmetic, logic, controlling, and input/output (I/O) operations specified by
the instructions in the program.
Operating System
An operating system is a
software programme
required to manage and
operate a computing
device like smartphones,
tablets, computers,
supercomputers, web
servers, cars, network
towers, smart watches,
etc.
DOS WINDOW
DOS is single tasking (Uni-programming) operating While windows are multitasking (Multiprogramming) operating
system. systems.
It consumes low power. While windows consume high power.
It consumes less memory in comparison of windows. While it consumes more memory.
DOS does not share time. While window can share time.
DOS is a command line operating system. Windows are the graphical operating systems.
While windows are more preferred by the users in comparison
DOS operating system is less preferred than windows.
of DOS.
In DOS operating system multimedia is not supported While windows support multimedia such as: Games, movies,
such as: Games, movies, songs etc. songs etc.
In DOS operation systems, operation are performed While in windows OS, operation are performed slowly than
speedily than windows OS. DOS OS.
There is only one window opened at a time in DOS. While in windows, multiple windows can be opened at a time.
While Windows uses various pointing devices such as light
DOS does not need any pointing devices.
pen, mouse, etc.
DOS is not widely used in computer systems now-a-
While Windows is used now-a-days in computer systems.
days.
DOS is free of cost. While original version of Windows is expensive.
File Storage