0478 Computer Science
Chpater 1 Number System
1.1 Number systems
1.2 Text, sound and images
1.3 Data storage and compression
Chapter 2 Data transmission
2.1 Types and methods of data transmission
2.2 Methods of error detection
2.3 Encryption
Chapter 3 Hardware
3.1 Computer architecture
3.2 Input and output devices
3.3 Data storage
3.4 Network hardware
Chapter 4 Software
4.1 Types of software and interrupts
4.2 Types of programming language, translators and integrated development environments (IDEs)
Chapter 5 The internet and its uses
5.1 The internet and the World Wide Web (WWW)
5.2 Digital currency
5.3 Cyber security
Chapter 6 Automated and emerging technologies
6.1 Automated systems
6.2 Robotics
6.3 Artificial intelligence (AI)
Chapter 7 Algorithm design and problem solving
7.1 The program development life cycle
7.2 Computer systems, sub-systems anddecomposition
未命名
未命名
Chapter 8 Programming
8.1 Programming concepts
8.2 Arrays
Mr. Theo
-
+
首页
3.3 Data storage
### PRIMARY STORAGE - Main memory inside a computer - Directly accessed by CPU, faster access than secondary storage - both volatile and non-volatile #### Random Access Memory (RAM) - is a hardware device - allows information to be stored and retrieved on a computer - RAM is a volatile memory and requires power to keep the data accessible - RAM normally has a larger capacity than ROM ##### Types of RAM - Dynamic RAM vs. Static RAM | DRAM | SRAM | | ------------------------------------------------------------ | ------------------------------------------------------------ | | Has to be refreshed, hence has slower access times and needs higher power | Doesn’t need to refresh hence uses less power and faster access time if accessed at a high frequency, power usage can exceed that of DRAM | | consists of a number of transistors and capacitors, hence less expensive to purchase | uses flip-flops, more complex circuitry, hence more expensive | | Each bit stored as a charge | Each bit stored in flip-flop | | Has higher data density/capacity | Has lower data density/capacity | | Used in main/primary memory | Used in cache memory | #### Read Only Memory (ROM) - Is a hardware device - Stores basic start up instructions for a computer e.g. basic input/output system (BIOS) - Stores bootstrap loader - ROM contains nonvolatile data, meaning it keeps it data even if the device loses power - Data can be read from and written to RAM, ROM can only be read from ### Secondary storage - For non-volatile/permanent/long-term storage of files/data - Storage that is not directly accessed by the CPU An example is HDD / SSD - To store data that is not currently required by the CPU // Stores data / files that can be accessed at a later stage #### Hard Disk Drive (HDD) - HDD is an electromechanical data storage device that uses magnetic storage - to store and retrieve digital information using one or more rotating magnetic disks ##### Benefits - Large capacity storage - for videos/films that have large file sizes / require large storage space - Longevity // Can be read from/written to large number of times - the copies will be accessible for a long time // device will not break if accessed regularly - …may require large number of read/write to access fields - Relatively cheap per GB // cheaper than SSD per GB … - … there is a large capacity required therefore overall may cost less than other devices - Device will not be moved regularly so no need for portability/durability ##### the operation of a HDD and how it stores data. - It has platters - Platters/disk divided into tracks - Platter/disk is spun - Has a read/write arm that moves across storage media - Read/writes data using electromagnets - Uses magnetic fields to control magnetic dots of data - Magnetic field determines binary value #### Solid State Drive (SSD) ##### how an SSD stores data - Flash storage - Uses transistors are used as control gates and floating gates - Can be NAND/NOR technology // Can use flip-flops - Stores data by flashing it onto the chips/device - Controlling/using the flow of electrons through/using transistors/chips/gates - The electric current reaches the control gate and flows through to the floating gate to be stored - When data is stored the transistor is converted from 1 to 0 / 0 to 1 ##### Why SSD is the most suitable secondary storage for their mobile device - It is small in size // compact // lightweight // portable - It has low power consumption - It runs quietly - It runs at a cool temperature - It is robust when dropped // durable - Fast access/read/write speed - High capacity - Not affected by magnets ##### Benefits - Large capacity storage - …for videos/films that have large file sizes / require large storage space - No moving parts - …can be carried/moved to other locations with limited risk of damage - Fast access speed - … videos are large files that will be stored/accessed in less time - Cost per GB is not significant (in comparison) - …there is a large capacity required therefore overall cost will not be significantly more than others - Used as a copy of files to may not be accessed regularly - … the limited number of read/write times/longevity is inconsequential - Uses less power // runs cooler ##### Example - Solid-state drive // SSD - USB flash memory drive - SD card | Hard disk drives | Solid state drives | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Use magnetic properties to read/write data | Use electronic properties of NAND/NOR chips | | Heat is produced due to movement of read-write heads moving to fetch data | No moving parts so it runs cooler | | Heavy | Lighter and used in tablets | | More power consumption compared to SSD | Lower power consumption | | Noise due to a spinning disc | Silent as no moving parts | | Less reliable, as the moving parts could break | Highly reliable, as no moving parts | | HDD can be used for a long time. Widely used in servers where huge numbers of operations take place every day. | SSD has limited read-write operations for a limited period of time. For example: 20 GB write operations in 3 years for early SSDs. Hence, cannot be used in servers. | #### OFFLINE STORAGE - non-volatile memory that can be removed from a computer system - It is not directly accessed by the CPU - must be physically connected to computer to obtain stored data - used to store files as a backup ###### Example: - CD - DVD - Blu-ray - Flash memory // USB storage - removable / external / portable hard disk drive (HDD/SSD) - SD card | | Compact Disk (CD) | Digital Versatile Disk (DVD) | | ------------ | ---------------------------------------- | ---------------------------- | | similarities | Both need a red laser to read/write data | | ^ | Both are spun to be read || ^ | Both use spiral tracks for data|| ^ | Both are optical storage|| ^ | Both are off-line storage // both non-volatile || ^ |Both use pits and lands to store data || | difference | can only be single |can be dual layer| ^|^|has higher storage capacity| ^|^|has a shorter wavelength laser| ^|^|are spun faster | ^|^|have a higher data transfer rate| ##### Compact Disk (CD)/Digital Versatile Disk (DVD) - Laser (red) light is used to read and write data on the surface of the disk. - Use a thin layer of metal alloy to store data. - Both systems use a single spiral track that runs from the centre of the disk to the edge - DVD uses *Dual-Layering,* which increases the storage capacity (two individual recording layers) ##### Blu-Ray - Optical storage media - Uses a blue laser to carry out read-and-write operations - The wavelength of laser light is less than CD and DVD (stores up to five times more data than DVD) - Automatically come with secure encryption (prevent piracy and copyright infringement) - Used as backup systems ##### how the laser is used to store and read data from the disk in optical media - Laser is shone at the disk - An (arm/head) moves the laser across the surface of the disk - The laser burns pits onto the surface of the disk - The laser is used to read the pits and lands on the surface of the disk - The reflected light from the laser shining on the disk is captured (by a sensor) ##### Flash Memory / USB Flash - Nonvolatile memory chip used for storage and for transferring data - between a personal computer (PC) and digital devices - It has the ability to be electronically reprogrammed and erased. - It is often found in USB flash drives, MP3 players, and digital cameras ## Embedded Systems - Combination of Hardware and Software which is designed to carry out a specific set of tasks. - Embedded systems may contain - - Microcontrollers - CPU, RAM, ROM and other peripherals on one single chip - Microprocessor - Integrated circuit with CPU only - System on Chips (SoC) - microprocessor with I/O ports, storage and memory - Process of Embedded Devices - - Input from the user is sent to the microprocessor (ADC needed if the data is analogue) - Data from the user interface is also sent to the microprocessor - Microprocessor then sends signals to actuators which is the output - Non-programmable devices need to be replaced if they need a software update. - Programmable devices have two methods of updating - - Connecting the device to a computer and downloading the update - Updating automatically via a satellite, cellular or Wi-Fi link Advantages and Disadvantages of using embedded systems | Advantages | Disadvantages | | ---------------------------------------------------- | ------------------------------------------------------------ | | Small in size, therefore can easily fit into devices | Can be difficult to upgrade | | Low cost to make | The interface can be confusing sometimes | | Requires very little power | Troubleshooting is a specialist’s job | | Very fast reaction to changing input | Often thrown away as difficult to upgrade and faults are harder to find | | Dedicated to one task only | Increased garbage as they are thrown away | | Can be controlled remotely | Any computerised system is prone to attacks | - Applications of Embedded devices - - GPS systems - Security Systems - Vending Machines - Washing Machines - Oven - Microwave ## Virtual memory ##### The purpose of virtual memory: - To run programs when there is insufficient RAM to run them - To allow RAM to store more data when required Virtual memory is used when the **Random access memory (RAM**) is full. It is created by partitioning the **Hard disk drive (HDD)**. Data is divided into **Pages** that can be sent from **Random access memory (RAM)** to the **Virtual memory // Hard disk drive (HDD)** to be temporarily stored until they are required. ##### A computer has pages A, B and C that are stored in RAM. Page D needs to be sent to the RAM but the RAM is full. Page B is not needed immediately:  - The secondary storage / hard drive can be partitioned to create the virtual memory - … and page B sent to the virtual memory … - … which makes space for page D in RAM - … Once page A / C / D / another page is not required / has been processed - … page B can be sent from the virtual memory back to RAM when it is required ## Cloud storage - A collection of servers that store data in a remote location - … that are (normally) accessed using an internet connection ##### Benefits of cloud storage - Can be accessed anywhere with Internet access - Do not need to buy specific software/hardware(No need for a client to carry an external storage device with them) - Do not need to install security / security could be better - Most cloud data service will have in-built backup/disaster recovery - Can easily increase capacity - Data can be shared easily ##### Drawbacks of cloud storage - May be less secure // by example - May lose access to them if internet connection lost/not available - Reliant on a third party maintaining the hardware // by example - Could incur an extra/ongoing fee/cost
Theo
2025年9月18日 16:25
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
Word文件
PDF文档
PDF文档(打印)
分享
链接
类型
密码
更新密码
有效期