Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Understanding Computer Memory: Main and Backing Storage, Lecture notes of Logic

An introduction to computer memory, explaining the functions and uses of main memory (RAM) and backing storage. Topics include the role of the CPU, types of memory, and the importance of quick data access. Students will also learn about magnetic and optical media, and the differences between serial and direct access storage.

Typology: Lecture notes

2021/2022

Uploaded on 09/12/2022

thimothy
thimothy 🇬🇧

4

(12)

79 documents

1 / 12

Toggle sidebar

Related documents


Partial preview of the text

Download Understanding Computer Memory: Main and Backing Storage and more Lecture notes Logic in PDF only on Docsity! Student Notes Theory 1 / 12 K Aquilina Introduction All computer systems need to store data. This is done:  Temporarily while a program is running. This is stored in main memory.  Long-term to preserve programs and data while not in use. This is called backing storage. So you can see how a computer system uses two types of memory: Main memory holds all of the essential memory that tells your computer how to be a computer. Backing storage holds the information that you store on backup storage devices. Note: Memory is another term used for storage. Uses of Main and Backing Storage Main memory is a temporary area for holding data, instructions, and information. Main Memory is also known as main store or primary storage. The main store (main memory) is needed:  To store the program currently being executed  To hold data produced as the program is run  To hold other data such as the contents of the screen. The backing store is needed:  For long-term storage of data and programs  For data and programs where there is not enough room in the main store. Block Diagram of the Computer System showing the Main & Backing Storage Storage The Central Processing Unit (CPU) is the unit responsible for the processing of data. The CPU is made up of 2 parts: the Control Unit (CU), the Arithmetic and Logic Unit (ALU) CPU = CU + ALU Student Notes Theory 2 / 12 K Aquilina Main Memory Main memory holds programs and data that the user is currently working with. For example: • A word-processed document that is being edited will be loaded into Main memory. • An email program that is currently transmitting a message will be loaded into main memory. • When you switch on the computer system, a program found in main memory will boot (start up) the computer system. Have you ever heard the terms RAM and ROM? These are the two main types of main memory Random Access Memory (RAM): RAM memory is rather like a whiteboard on which you can scribble down notes, read them, and rub them out when you are finished with them. In the computer, RAM is the working memory. Data can be read (retrieved) from or written (stored) into RAM. RAM chips will remember what you tell them and can even change to remember new information. But, when the computer is turned off, RAM forgets everything you told it. This is why it is so important to save your work on a computer - if the computer gets turned off, RAM will lose all of your work! RAM is used to store programs and data that are being used by the computer. When the computer is turned on the RAM is empty. Data and programs can be put into RAM from either an input device or from backing store. The data in RAM is lost when the computer is turned off so it is known as volatile memory. To keep data the user must save it to backing store before the computer is turned off. o The process of transferring data/programs from backing store into RAM so they can be used is known as loading. o The process of transferring data/programs from RAM to backing store so that they will be retained when a computer is turned off is known as saving. Read Only Memory (ROM): ROM is good at remembering, but cannot change it's mind. It holds information that is built into it. ROM is like reading a library book - lots of information is there, but you can't change it (because you never write in a library book). RAM, on the other hand, is more like a personal diary - you can write information into the diary. But if you change your mind, you can erase and write in new information. ROM chips are loaded with data and programs during manufacture and can only be read by computer. However, the contents of the chips are not lost when the power is switched off (non-volatile). If ROM was volatile it would lose its data and it would not be possible to write it back. ROM is used to form a computer's permanent store of vital information, or of programs that must be readily available but protected from accidental or deliberate change by the user. Frequently used programs essential to the normal running of the computer are stored in ROM. These usually include the bootstrap loader and BIOS, which runs when the computer is switched on to get it started. Only the computer manufacturer or experienced technicians can provide these programs in ROM and once done, they cannot be changed. Consequently, you cannot put any of your own data or programs in ROM. Student Notes Theory 5 / 12 K Aquilina Magnetic Media Magnetic tape Magnetic tape is a narrow plastic ribbon coated with an easily magnetisable material on which data can be recorded. It is used in sound recording, audiovisual systems (videotape), and backups. Tape is still used to make backup copies of important data. Information is recorded on the tape in binary form, with two different strengths of signal representing 1 and 0. The device that reads the tape is the Tape Drive or Tape Unit. Magnetic tape comes mainly in two different forms: Reel to Reel Large reels of tape which must be loaded into a reel-to-reel tape drive. This type of tape is usually used by mainframe computers. Cartridges The tape is supplied in a small cartridge rather like a music tape. This type of tape is used on PCs (microcomputers) and the device used to read/write the tapes is called a tape streamer. Capacities of cartridges vary from 10Gb to 200Gb. Magnetic Discs - Hard Disks The hard disk is a magnetic disk, usually fixed in the drive (internal) although nowadays there also exist external hard disks. Access to data is far faster than access to floppy disks. Hard disks store far more data than floppy disks. They are more reliable then floppy disks - there is better protection against dirt. Hard disks are used to store the operating system, application software and users' files. A hard disk is made of a rigid disk which is coated with a magnetisable material. Hard disks spin much more quickly than floppy disks and the disk read/write head is positioned very close to the disk (thousandths of a millimeter away). Because the disk head is positioned so close to the disk hard drives can easily be damaged by dust or vibration. Therefore the disk, the drive head and all the electronics needed to operate the drive are built together into a sealed unit. This picture shows a hard disk drive with the case removed. Usually (as in the picture above) several physical disks are contained in one hard disk unit. Each disk is known as a platter. Typical hard disk capacities for a home PC now start at up to 180 Gb. Student Notes Theory 6 / 12 K Aquilina Floppy Disks Consists of a plastic case that measures 3 1/2 by 5 inches. Inside that case is a very thin piece of plastic (see picture at right) that is coated with microscopic iron particles (magnetic). This disk is much like the tape inside a video or audio cassette. Never touch the inner disk - you could damage the data that is stored on it. Floppy disks are the smallest type of storage, holding only 1.44MB. Access to data is much slower than for hard disk. The data on the disk can be protected by sliding a small write-protect tab which prevents the contents of the disk from being changed. Some hardware companies now produce storage devices (Zip disks) which are very similar to floppy disks but can store 100Mb or even 250Mb of data. These devices are also much faster than standard floppy disk drives. How Hard disks and Floppy Disks Work - Magnetic The process of reading and writing to a hard or floppy disk is done with electricity and magnetism. The surfaces of both types of disks can be easily magnetized. The electromagnetic head of the disk drive records information to the disk by creating a pattern of magnetized and non-magnetized areas on the disk's surface. Do you remember how the binary code uses on and off commands to represent information? On the disk, magnetized areas are on and non-magnetized areas are off, so that all information is stored in binary code. This is how the electronic head can both write to or read from the disk surface. It is very important to always keep magnets away from floppy disks and away from your computer! The magnets can erase information from the disks! Student Notes Theory 7 / 12 K Aquilina Format of Magnetic Disks All magnetic disks are similarly formatted, or divided into areas, called Tracks and Sectors. The formatting process sets up a method of assigning addresses to the different areas. It also sets up an area for keeping the list of addresses. Without formatting there would be no way to know what data went with what. Tracks - A track is a circular ring on one side of the disk. Each track has a number. The diagram shows 3 tracks. Sectors - A disk sector is a wedge-shape piece of the disk. Each sector is numbered. A typical magnetic disk has two surfaces or sides. Each surface holds data in circular tracks and each track is divided into equal sections called sectors. The track number and sector number are used as an address to find where data is on the disk. Data can be both written to and read from the disk. Magnetic disks are direct access i.e. any data item can be accessed without reading other data first. What happens when a disk is formatted? 1. All data is erased. Don't forget this!! 2. Surfaces are checked for physical and magnetic defects. 3. A Filing system (with root directory) is created to list where things are on the disk. Magnetic Disk Advantages Magnetic disk Disadvantages Storage Exercise 2: 1. Why are disk storage devices popular? 2. How is data stored on all magnetic disks? 3. How is the storage capacity of a disk determined? Double sided Student Notes Theory 10 / 12 K Aquilina The disk filing system To access files stored on magnetic disks, an operating system maintains a list of the sectors assigned to each file. This list is stored in a table called a ____________________________________ ______(FAT). The FAT is created when a disk is formatted. This table is sometimes called a memory map because it describes the way storage is organised in a computer. In short, a memory map describes how the information held on disk is organised, and is kept on disk. NTFS (New Technology File System) is today’s standard file system for many Operating Systems. Hierarchical directory structure A hierarchical directory structure is used to organise the files that exist on a hard disk. Such a structure lets the user organise in a meaningful way all the files. Much as a real tree has all its branches and roots come together in one spot, so too does a file system directory structure. Root Directory Folder Folder Folder Folder Folder SubF1 SubF2 SubF3 SubF4 Student Notes Theory 11 / 12 K Aquilina Storage Access Methods What is Storage access? How data files are stored in secondary storage varies with the types of media and devices you are using. Data files may be stored on or in sequential-access storage, direct-access storage, or random-access storage Serial (Sequential) Access Punched cards, paper tape, and magnetic tape are examples of sequential-access storage media. When operating in a sequential environment, a particular record can be read only by first reading all the records that come before it in the file. For example, when you store a file on tape, the 125th record cannot be read until the 124 records in front of it are read. The records are read in sequence. You cannot read just any record at random. This is also true when reading punched cards or paper tape. When a serial access medium is being used, the head that reads data from the storage medium has limited freedom of movement. Because of this it can take a very long time to locate a record/file on a tape and so tapes are only used for specific applications such as backup and batch processing. For these applications the speed of locating data is not important and the other advantages of magnetic tapes outweigh the slow access speed. Suitability of use: Payrolls Direct (Random) Access Direct-access storage allows you to access the 125th record without first having to read the 124 records in front of it. Data can be obtained quickly from anywhere on the media. However, the amount of time it takes to access a record is dependent to some extent on the mechanical process involved. When direct access is used the head that reads data from the storage medium can move directly to any point on the storage medium. If a particular record or file must be loaded or saved then the head can move directly to the record/file's position on the storage medium and read the data. Records and files can therefore be located very quickly. Magnetic disks such as hard disks and floppy disks and optical disks such as CD- ROMs use the direct access method. Direct Access is required if transaction processing is taking place. Suitability of use: Airline booking Storage Exercise 4: 1. Punched cards, paper tape, and magnetic tape use what storage access method? 2. What kind of storage allows you to access the 125th record without having to read the 124 records in front of it? Student Notes Theory 12 / 12 K Aquilina Access time (typical, faster or slower) The speed of a storage device is defined by its access time, which is the amount of time it takes to locate an item on a medium. Access time is the time between the computer’s request for data from secondary storage and the completion of the data transfer. It is basically the time taken for a hard disk (or cd-rom) to seek data and is measured in milliseconds (1/1000th of a second). If you have a hard disk with an access time of 10ms, a file of 10Mb will take less time to be found than another hard disk with an access time of 12ms. Typical access time (time to seek data) is between 9ms and 12ms. The lower the access time, the more costly a device is. Access time for most disk drives is, in fact under 25 milliseconds. Storage Level Typical access time Typical capacity CPU registers Instantaneous A few bytes Cache memory 15 - 30 ns 64 KB – 256 KB Main Memory 50ns – 200 ns 16MB – 512 MB Hard Disk 10ms – 30 ms 12 GB – 180 GB Pen Drives 256 MB – 16GB CD-ROM 100ms – 600 ms 650 MB – 700 Mb Tape > 0.5 s 2 GB – 100 GB A comparison of Main Memory and Backing Storage Main Memory Backing Storage Advantages Memory is fast because it is accessed electronically and no mechanically components is involved. Backing storage is nonvolatile and contents stored is relatively more permanent when compared with memory. Backing storage provides a cheap and almost an unlimited amount of storage. Disadvantages Most memory (except ROM, flash memory and CMOS) is volatile and contents must be transferred to backing storage before the computer is turned off. Memory is expensive and its storage size on a computer system is usually limited when compared with backing storage. Backing storage is slow because of the mechanical components involved.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved