Fahad Iqbal
CMS # 14016
Semester 2 Section A
What a programmer should know about memory
Memory:-
Computer memory is a permanently and temporary storage area. It contains the data which is needed by cpu.
Memory is like the kind of switches which is known as transistors. Switches are present in two states, on or off. In which on is used as "1" and off is used as "0".So the one of transistor can represent one of two digits.
Our computer memory is divided into several different types of memory, but the most important are known as "RAM AND ROM". but in which we discus about the RAM and ROM
RAM:-
RAM is known as Random access memory. In which we can access any memory cell directly if we know about the row and column.
RAM is used for reading or writing to file storage. Solid-state disks, in our android devices, people use as a hard drives in their computers are faster than normal computer hard drives, But using to cache the data we need a lot slower that using dedicated, solid-state RAM.
RAM is so much cheap.
RAM is volatile, that is instructions and data holds in memory are lost once the computer is powered down.
Their are two types of RAM, Static RAM and Dynamic RAM.
Comparison of static RAM and dynamic RAM:-
1- dynamic RAM needs to be refreshed thousands of times per second but static RAM does not need to be refreshed.
2- DRAM supports access times 60 nanoseconds and Static RAM supports access times 10 nanoseconds.
3- Static RAM is faster, but its not as commonly used as DRAM because its so much more expensive.
4- Static RAM and DRAM are both volatile, but they lost their contents when the power is turned off.
ROM
ROM is known as read only memory and non volatile memory it is a class of storage medium used in computers and other electronic devices. Data stored in ROM can only be modified slowly.
TYPES OF NON-VOLATILE MEMORY
1: EPROM
2: EEPROM
EPROM
Erasable programmable read-only memory is programmable read-only memory that can be erased and re-used.
EEPROM
Electrically Erasable Programmable Read-Only memory and is a type of non-volatile memory used in computers and other electronic devices to store small amounts of data that must be saved when power is removed
Unlike bytes in most other kinds of non-volatile memory, individual bytes in a traditional EEPROM can be independently read, erased,