Unit 4-Memory
Unit 4-Memory
1.Static RAM
2.Dynamic RAM – It has two types
Asynchronous and Synchronous DRAM
Virtual memory
• Virtual memory is a technique that provides an “illusion” of a large main
memory.
• It hides the real organization of main memory from the processes.
• The operating system uses a portion of the hard disk to emulate the computer’s
RAM.
• This increases the capacity of the main memory and facilitates multitasking.
How does virtual memory work?
• The working mechanism of virtual memory involves a process called
‘swapping’. data from the RAM is temporarily moved to the hard disk’s
storage space. This makes room for other data in the RAM. When the original
data is needed again, it is swapped back into the RAM. This swapping process
happens so quickly that users do not notice any delay.
What is paging?
• Paging is a storage mechanism used to retrieve processes from the secondary
storage into the main memory in the form of pages.
• The main idea is to divide each process in the form of pages.
• The main memory will also be divided in the form of frames.
One page of the process is to be stored in one of the frames of the memory
Example
• Let us consider the main memory size 16 Kb and the Frame size is 1 KB
therefore the main memory will be divided into the collection of 16 frames
of 1 KB each.
• There are 4 processes in the system that is P1, P2, P3, and P4 of 4 KB each.
• Each process is divided into pages of 1 KB each so that one page can be
stored in one frame
After some time P2 and P4 are moved to a waiting state after some time. Now, 8
frames become empty
The disk surface is divided into concentric tracks (circles within circles). Tracks are
further divided into sectors, the sector which is typically 512 bytes, is the smallest
unit that can be read or write.
• No Removable Disk: is permanently mounted in a disc drive. Eg. Hard
disk in a personal computer
• Removable Disk: Can be removed and replaced with another disk. Such
a disk can be moved from one computer system to another. E.g. Floppy
disks
• Single Sided Disks: Magnetizable coating is applied to single side of the
platter.
• Double Sided Disks: Magnetizable coating is applied to both sides of the
platter.
• Single Platter: Single platter is present in disk.
• Multiple Platters: Some disk drives accommodate multiple platters
stacked vertically.
Magnetic Tape
• It was used as an early secondary storage medium. Although it is
relatively permanent and can hold large quantities of data, its access time
is slow in comparison to that of main memory.
• Tapes are used mainly for backup and as a medium for transferring
information from one system to another.
• Magnetic tape is generally consisting of a thin magnetizable coating
on a long and narrow strip of plastic used for recording audio or video
or for computer data storage.
• Tape recorders and video tape recorders are the Devices that record and
playback audio and video using magnetic tapes.
• A device which stores computer data on magnetic tape is called tape drive.
Advantages:
• Less expensive when storing large amount of data.
• Data stored permanently.
Disadvantages:
• The major drawback of tape is its sequential format. Locating a specific
record requires reading every record in front of it or searching for markers
that identify predefined partitions.
• Updating requires copying files from the original tape to a blank tape
(scratch tape) and adding the new data in between.
• Access time is slow in magnetic tape.
OPTICAL MEMORY
In optical memory , data is stored in optical form(CDROM or DVD)
CD-ROM (Compact Disc Read Only Memory)
• CD-ROM is a compact disc that contains data accessible by a
computer.
• The CD can store more than 60 minutes of audio information on one side.
• It is low cost optical-disk for storage.
• Discs are made from a 1.2 mm thick disc of polycarbonate plastic, with a
thin layer of aluminum to make a reflective surface.
• The most common size of CD-ROM disc is 120 mm in diameter,
• CD-ROMs are popularly used to distribute computer software, including
games and multimedia applications.
• While the compact Disc format was originally designed for music storage
and playback, the format was later adapted to hold any form of binary data.
• Capacity: A standard 120mm CD ROM holds 650 to700MB data.
Advantages of CD-ROM:
• The optical disk together with the information stored on it can be mass
replicated inexpensively - unlike a magnetic disk.
• The optical disk is removable.
• It is highly reliable and efficient information storage system.
• It provides high capacity read only memory.
• It is light in weight & can be easily carried from one comp to another.
Disadvantages of CD-ROM:
• It is read-only and cannot be updated.
• It has an access time much longer than that of a magnetic disk
• Needs careful handling, because dust, finger prints, and crashes on reading
surface may affect.
RAID
(Redundant array of independent disks) is a setup consisting of multiple disks for
data storage.
• They are linked together to prevent data loss and/or speed up
performance.
• Having multiple disks allows the employment of various techniques
like disk striping, disk mirroring, and parity.
• The following list explains the standard RAID levels (0, 1, 2, 3, 4, 5,
6)