What Every Programmer Should Know About Memory

This forum is aimed at students with little or no programming experience. It aims to provide students with an understanding of the role computation can play in solving problems.
Forum rules
This forum aims to provide material related to computer programming languages, tools and designs.

Re: What Every Programmer Should Know About Memory

Unread postby Usama Bin Malik » Wed Apr 29, 2015 7:19 pm

What Every Programmer Should Know About Memory???
Memory:
“The mental capacity or faculty of retaining and reviving facts, events, impressions, etc., or of recalling or recognizing previous experiences”.

Computer Memory:
The “computer memory” is a temporary storage area.
It holds the data and instructions that the Central Processing Unit (CPU) needs.
The computer memory consists of may million of bytes
there are two different types of memory.
• Random Access Memory(RAM)
• Read Only Memory(ROM)
RAM:
RAM is basically a volatile kind of memory.
It stores input data, program functions, intermediate results and other information’s temporarily. The Data in the RAM is easily accessible than any other type of memory.
It can be read or write. it’s data will be lost if the system is turned off.
In some cases it’s data can be retrieved from data storage.
Different types of RAM:
• DRAM
DRAM is the most used form of a Ram
• SRAM:
SRAM needs power to keep its data, but doesn't need the computer to be active.
Some SRAM chips are battery-backed. This type has a built-in battery to make sure no data is lost if the computer is turned off. Some computers have a little SRAM and mostly DRAM.
Comparison between DRAM and SRAM:
SRAM is able to store data as long as power/energy is used. There is no need to refresh it. SRAM can also be faster than DRAM. But SRAM is much more expensive than DRAM.
ROM:
ROM is basically a non-volatile kind of memory.It permanently stores data. A hard disc is basically act as a ROM.
There are different types of ROM:
• Masked ROM:
This kind is written once, at the factory. It cannot be changed at all later on. Its main benefit is that it is very cheap to make.
• PROM:
It Can be programmed once.It Comes unprogrammed from the factory. Programming consists in removing connections. Has been replaced by EPROMs
• EPROM:
This kind can be erased with UV light.
• EEPROM:
This kind of RAM can be erased using an electrical signal.

Today, flash memory is often used.
User avatar
Usama Bin Malik
 
Posts: 2
Joined: Wed Apr 01, 2015 1:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What Every Programmer Should Know About Memory

Unread postby inamullah13911 » Wed Apr 29, 2015 8:23 pm

What Every Programmer Should Know About Memory:-
Every programmer have to know about memory because memory is the most important thing in computer. Computers speed and its all basic things that we see are stored in the memory unit.
There are mainly two types of memories
1) Volatile
2) Non-volatile

VOLATILE MEMORY:
It is the type of memory which only works when the system is turnned on.
OR
The memory which maintaince its data only when the system is powered
FOR EXAMPLE;
RAM( random excess memory) is an example of volatile memory.
NON-VOLATILE MEMORY:
Its a type of memory which does not losses its data after shutting down or powered off.
It is an opposite of volatile memory because of its property of saving contents after powered off.
FOR EXAMPLE;
ROM( read only memory) as described by its name we just can read its contents and does not eddit or remove them and it also does not losses its data after power off.
User avatar
inamullah13911
 
Posts: 2
Joined: Wed Apr 29, 2015 8:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What Every Programmer Should Know About Memory

Unread postby zia khan » Wed Apr 29, 2015 8:50 pm

RAJA ZIA UR REHMAN
CMS# 14310
“WHAT EVERY PROGRAMMER SHOULD KNOW ABOUT MEMORY”
ABSTRACT
As CPU cores become both faster and more numerous, the limiting factor for most programs is now, and will be for some time, memory access. Hardware designers have come up with ever more sophisticated memory handling and acceleration techniques such as CPU caches but these cannot work optimally without some help from the programmer. Unfortunately neither the structure nor the cost of using the memory subsystems of a computer or the caches on CPUs is well understood by most programmers.
MEMORY
Computer memory is a storage area of a computer system made up of the combinations of circuits . Common unit used is byte to define the size of the data, often used as kilobytes, megabytes and so on according to the usage. It has two main very basic types.
1 RAM
2 ROM
RAM:
It stands for random access memory also known as temporary memory where data is temporarily stored on chips and vanished when working window closes. Data can both be read and write from this memory hence also known as read-write memory. Power failure of a system lead to a loss of data permanently due to non storing of data. Apart from these RAM also effects the performance of a system, It is known from the fact that more the RAM a system contains more the efficiency will be.
ROM
Unlike the qualities of RAM read only memory (ROM) saves the data permanently whether the system is turned off. Hence It is also known as non volatile memory. It is the most crucial part of the computer system through which computer system could able to perform and maintain different processes by receiving instructions from this permanent memory. Hence whenever system starts it starts gaining instructions until the shutting of the system.
User avatar
zia khan
 
Posts: 3
Joined: Wed Apr 01, 2015 6:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What Every Programmer Should Know About Memory

Unread postby Hamza sheryar » Wed Apr 29, 2015 9:22 pm

What a programmer should know about memory
Memory:-
Computer memory have a permanent 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
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.

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.

TYPES OF ROM:-

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,
TYPES OF RAM:-
Their are two types of RAM,
* Static RAM and * Dynamic RAM.
Comparison of static RAM and dynamic RAM:-
* Dynamic RAM needs to be refreshed thousands of times per second but static RAM does not need to be refreshed.
*DRAM supports access times 60 nanoseconds and Static RAM supports access times 10 nanoseconds.
* Static RAM is faster, but its not as commonly used as DRAM because its so much more expensive.
* Static RAM and DRAM are both volatile, but they lost their contents when the power is turned off.
Hamza sheryar
 
Posts: 1
Joined: Wed Apr 29, 2015 9:16 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What Every Programmer Should Know About Memory

Unread postby Israr Saleem » Thu Apr 30, 2015 7:34 am

cms#14411
israr saleem

Memory:-
Computer memory is a permanently or temporary storage area. It contains the data or information that CPU needs.
Memory is typically of the same kind of switches which is known as transistors. Switches are present in two states, on or off. In which on state represents "1" and off state represents "0".So the one of transistor can represent one of two digits.
Two Types Of Memory:
There are two main types of memory.
1. RAM
2. ROM

RAM:
Also known as Random Access Memory, where data is written on ram chips and can be removed. It is read and write memory. RAM is volatile which means it can not retain its content after the computer has been shut off. It is cheaper.

ROM:
Also known as Read Only Memory, formed by ic chips inside of the computer. It is non-volatile meaning the memory stored in it is permanent and unchangeable. The basic input-output programs are stored in ROM that analyze and are connected to the various equipment attached to the computer. Even when the computer is turned off the memory stored in rm will not be lost but will be embedded in the computer.
User avatar
Israr Saleem
 
Posts: 3
Joined: Thu Apr 02, 2015 7:30 am
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Computer Sciences & Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron