components of a computer system Flashcards
what is the purpose of a computer?
- to take data, process it, then output it, and doing this more efficiently than humans.
what does a computer system consist of?
- consists of hardware and software that work together to process data / complete tasks.
what is hardware?
- the physical stuff that makes up your computer system, like the CPU, motherboard, monitor and printer.
what is software?
- the programs or applications that a computer system runs e.g. an OS, a word processor or video game.
what are peripherals?
- external pieces of hardware like the keyboard, mouse and printer.
what are the different types of computer system?
- general purpose: designed to perform many tasks like PC’s and tablets.
- dedicated systems: designed for one particular function like controlling traffic lights or an aeroplane.
what are embedded systems?
- computers built into other devices, like dishwashers, microwaves and TV’s.
- usually dedicated systems.
what is the purpose of embedded systems?
- usually used as control systems (monitor and control machinery in order to achieve a desired result).
embedded vs. general
- embedded systems are dedicated to a single task so are usually easier to design, cheaper to produce and more efficient at doing their task than a general purpose computer.
what are the main hardware components of a computer and what do they do?
- power supply: supplies power to motherboard, optical and hard drives, and other hardware.
- case cooling fan: extracts hot air from the computer case.
- CPU heat sink and cooling fan: keeps CPU at steady temperature as they generate a lot of heat.
- CPU (under heat sink): does all processing and is most important component.
- graphics card.
- motherboard: main circuit board in computer, where the hardware is connected.
- hard disk drive: internal secondary storage.
- RAM sticks: computer memory.
- optical drive: for read/writing of optical disks.
what is the purpose of the CPU?
- processes all of the data and instructions that make a system work, and carries them out.
- is the brain of the computer system.
what are the main components of the CPU?
- the control unit (CU).
- the arithmetic logic unit (ALU).
- the cache.
- various registers.
what does CPU stand for?
- central processing unit.
what does the CU do?
- in overall control of the CPU.
- main job is to execute program instructions by following the fetch-decode-execute cycle.
- controls flow of data inside the CPU (to registers, ALU, cache) and outside CPU (to main memory and input/output devices).
what does the ALU do?
- does all calculations (simple addition and subtraction, compares size of numbers and can do multiplications and divisions using repeated addition and subtraction).
- performs logic operations such as AND, OR and NOT and binary shifts.
- contains accumulator register.
what is cache?
- very fast memory in the CPU.
- slower than registers but faster than RAM.
- stores regularly used data so CPU can access it quickly when next needed (when CPU requests data, it checks cache first to see if data is there, else, it fetches it from RAM).
- very low capacity and expensive compared to RAM and secondary storage.
what are the different levels of cache memory?
- L1 is quickest but has lowest capacity.
- L2 slower but can hold more.
- L3 slower but can hold more.
what are registers?
- in CPU, and temporarily hold tiny bits of data needed by CPU.
- super quick to read/write to (way quicker than any other form of memory).
what is Von Neumann architecture?
- describes a system where the CPU runs programs stored in memory.
- programs consist of instructions and data which are stored in memory addresses.
- came up with his design in 1945.
what are the features of Von Neumann architecture?
- program counter (PC) in CU.
- accumulator in ALU.
- registers: memory address register (MAR) and memory data register (MDR).
- only uses one memory for both the data and the instructions.
what is the PC?
- holds memory address of the instruction for each cycle.
what is the accumulator?
- stores intermediate results of calculations in the ALU.
what is the MAR?
- holds any memory address about to be used by the CPU.
- the address might point to data or a CPU instruction.
what is the MDR?
- holds the actual data or instruction, which may have been fetched from memory, or be waiting to be written to memory.
how does the CPU run?
- fetch-decode-execute cycle.
what is the fetch instruction?
1) copy memory address from PC to the MAR.
2) copy instruction stored in the MAR address to the MDR.
3) increment (increase) the PC to point to address of next instruction ready for the next cycle.
what is the decode instruction?
1) the instruction in the MDR is decoded by the CU.
2) CU may prepare for next step e.g. loading values into the MAR or MDR.
what is the execute instruction?
1) instruction is performed, which could be: load data from memory, write data to memory, do a calculation or logic operation (using ALU), change the address in the PC, or halt the program.
what affects CPU performance?
- clock speed.
- number of cores.
- cache size.
- however, by increasing the above, the CPU will be more expensive.
how does clock speed affect CPU performance?
- this is number of instructions a single processor core can carry out per second (Hz), usually 3.5 GHz.
- higher clock speed = greater number of instructions that can be carried out per second.
- some CPU’s can be overclocked to make them run faster than the factory-set rate but is risky (CPU can overheat, causing crashes or permanent damage to the system so high performance cooling systems (e.g. water cooling) usually needed.
how do the number of cores affect CPU performance?
- each core in a CPU can process data independently so more cores = more instructions can be carried out at once.
- PCs and smartphones have 4 or more cores usually.
how does cache size affect CPU performance?
- larger CPU cache gives the CPU faster access to more data it needs to process.
what is the difference between RAM and ROM?
- ROM is non-volatile and RAM is volatile.
- ROM can only be read, RAM can be read and written to.
what is the purpose of ROM in a computer system?
- ‘read only memory’.
- can only be read, not written to.
- comes on small, factory-made chip built into mother board.
- contains all instructions a computer needs to boot up properly. these instructions are called BIOS (Basic Input Output System).
- as soon as computer is powered on, CPU reads instructions from ROM. this tells CPU to perform self checks and set up the computer.
- often use flash memory.
what is the purpose of RAM in a computer system?
- ‘random access memory’
- can be read and written to.
- when computer boots up, OS is copied from secondary storage to RAM.
- when software applications, documents and files are opened, they are copied from secondary storage to RAM. they stay in RAM until files or applications are closed.
- RAM slower than CPU cache but way faster than secondary storage.
what does volatile mean?
- temporary memory.
- requires power to retain its data.
what does non-volatile mean?
- permanent memory.
- keeps contents even when it has no power.
what is virtual memory?
- computers have limited amount of RAM, so when it fills up, the computer needs somewhere else to put its application data (moves recently unused data to location on secondary storage called virtual memory).
- may be needed if too many apps open at once or if a particularly memory-intensive app is being used.
- if CPU needs to read data stored in virtual memory, it must move back to RAM (slow data transfer/ to respond as constantly switching between virtual memory and RAM).
what is flash memory?
- non-volatile memory that stores data in electrical circuits by trapping electrons.
- used in ROM, SD cards, USB sticks, SSDs. SD cards and USB sticks are solid-state storage, but are much slower than SSDs and have a much shorter read/write life.
- used to expand storage capacity of small devices like cameras, smartphones and tablets which are too small for SSDs and HDDs. their capacity is very high relative to their tiny size.
how can you improve system performance?
- more RAM so less virtual memory used (so can run more apps/memory-intensive applications). just have to replace RAM sticks with higher capacity/speed ones.
- GPUs (graphic processing units) are specialised circuits for handling graphics and image processing (relieve processing load on CPU).
what is secondary storage?
- non-volatile.
- where all data (OS, applications, user files) stored when not in use.
- includes: magnetic hard disk drives, solid state drives, CDs and SD cards.
- read/write speeds are much slower compared to primary storage.
what is primary storage?
- refers to memory areas that the CPU can access very quickly eg. CPU registers, cache, ROM and RAM.
- has fastest read/write speeds and is mostly volatile.
what are magnetic hard disks?
- traditional internal storage in PCs and laptops
- made of a stack of magnetised metal disks spinning at a rate of between 5400 and 15000 rpm (revolutions per minute).
- data is stored magnetically in small area called sectors within circular tracks. Read/write heads on a moving arm are used to access sectors on the disk.
- generally very long lasting and reliable, but can be damaged by large impacts eg. dropped.
what are solid state drives(SSDs)?
- storage devices with no moving parts. most are a type of flash memory, and are used for internal storage.
- faster read/write times than HDDs -> much quicker booting up time and opening programs and files.
- portable SSDs can be used to back up and transport data.
what are hybrid drives?
- use solid state storage for the OS and programs, and hard disk for data.
HDDs vs SSDs
- HDDs are cheaper, have higher capacity, longer read/write life (SSDs can only been written a certain number of times before they begin to deteriorate).
- SSDs are faster, don’t need defragmenting, more shock-proof, silent (HDDs make some noise).
what are optical discs?
- CDs(can hold 700MB), DVDs(can hold 4.7GB) and Blu-Ray discs(can hold 25GB).
- data is stored as microscopic indentations on the shiny surface of the disc, and is read by shining a laser beam on the surface and detecting changes in the position of the reflected beam.
- come in 3 forms: read-only(eg. CD-ROM), write-once(eg.CD-R), rewritable(eg. CD-RW)
- use is declining: streaming and download websites on the internet, modern devices don’t have optical drives.
- very cheap(per GB), portable, won’t be damaged by water or shocks, but are easily scratched.
what are magnetic tapes?
- used for archiving by large organisations in archive libraries to store large amounts of data frequently.
- much greater storage capacity than HDDs and extremely low cost per GB.
- come in plastic cassettes which require a specific tape-drive for read/writing.
- tape is read/written sequentially (from beginning to end or until stopped by computer), so very slow when finding specific data stored on it, but has a fast read/write speed once it is in the correct place to begin reading/writing.
average cost per GB (priciest first)
- SSD
- memory card
- HDD
- optical disc
- magnetic tape
average read/write speed (fastest first)
- SSD
- HDD
- magnetic tape
- memory card
- optical disc
average capacity (highest first)
- magnetic tape
- HDD
- SSD
- memory cards
- optical disc
what are the 2 types of networks?
- LAN (local area network)
- WAN (wide area network)
what is a LAN?
- local area network.
- covers a small geographical area located on a single site eg. schools, businesses, unis.
- all hardware is owned by the organisation that uses it.
- either wired (eg. Ethernet cables) or wireless (using WiFi)
- lots of homes have a LAN to connect various devices eg. PCs, tablets, smart TVs and printers.
why use a LAN?
- sharing files is easier (network users can access the same files, work collaboratively on them and copy files between machines).
- can share same hardware (eg. printers)
- internet connection can be shared between every device.
- can communicate with LAN users cheaply and easily (eg. instant messaging)
- user accounts can be stored centrally, so users can log in from any device on the network.
what is a WAN?
- wide area network.
- connects LANs that are in different geographical locations eg. a business with offices in different countries would need a WAN for all their devices to connect together.
- organisations hire infrastructure (eg. communication lines) from telecommunications companies, who own and manage the WAN, as a WAN is much more expensive to set up than a LAN.
- may be connected using fibre or copper telephone lines, satellite links or radio links.
- the internet is the biggest WAN.
what factors affect the performance of networks?
- bandwidth (amount of data that can be transferred in a given time eg. 500 Mbps - megabits per second). greater bandwidth = better performance.
- available bandwidth shared between users of a network so too many users or heavy use (eg. streaming video) may cause congestion and slow the network, so can limit bandwidth available to individual users to address this.
- wired connections are generally faster and more reliable than wireless. fibre optic cables give much better performance than copper cables. wireless performance depends on signal quality so is affected by the range of the device, amount of interference from other devices, and physical obstructions like thick walls.
- choice of hardware and network topology also have a big effect.
what are client-server networks?
- managed by a server and the devices connected to the server are clients.
- files and software usually stored centrally on server rather than on individual client devices.
- clients send requests to server, the server processes the request and responds. this is the client-server relationship.
- server stores user profiles, passwords and access information, so may request a password before fulfilling certain requests or deny requests to users without right access level.
- most internet work on client-server relationship eg. websites hosted on web servers. web browsers are client programs which send requests to web servers, which fulfill requests for thousands of clients.
pros and cons of client-server networks
- PROS: easier to keep track of files as they are centrally stored, easier to perform backups, easier to install and update software, easier to manage network security (eg. anti-malware software and user access levels), servers are very reliable and are always on.
- CONS: expensive to set up and needs IT specialists to maintain the network and server. server dependence (if server goes down all clients lose access to work). server may become overloaded if too many clients are accessing it at once.
what are peer-to-peer (P2P) networks?
- all devices are equal, connecting directly to each other without a server.
- you store files on individual devices and share them with others.
- may use at home to share files between devices, or connect devices to a printer.
- some P2P networks on the internet like video calling (Skype) and file sharing (usually illegal sharing of copyrighted material).
pros and cons of P2P networks
- PROS; easy to maintain (don’t need expertise or expensive hardware). no dependence on server (if one device fails the whole network isn’t lost).
- CONS: no centralised management (devices need their updates and security installed individually) backups are more complicated. copying files between devices creates duplicate files (easy to lose track of what’s stored where and which files are up-to-date). peer machines are less reliable and data may be lost if one fails. machines are prone to slow down when other devices access them.
what hardware can be used to connect devices to LAN?
- NICs, switches, routers, wireless access points, transmission media(cables and radio waves/wireless).
what are NICs?
- network interface controllers are internal pieces of hardware that allows a device to connect to a network.
- can be used on separate cards, but nowadays they are built into the motherboard.
- exist for both wired and wireless connections.
what are switches?
- connect devices to LAN. they receive data (in units called frames) from one device and transmit this data to the device on the network with the correct MAC address.
what are routers?
- responsible for transmitting data between networks (always connected to at least 2 networks).
- have a crucial role on the internet, directing data (in units called packets) to their destination.
- used in homes and offices to connect LAN to internet.
- home routes are actual routers, switch and WAP all-in-one.
what are the different cables?
- ethernet cables connect devices in a LAN (eg. CAT 5e or CAT 6). they are ‘twisted pair’ cables, containing 4 pairs of copper wires which are twisted together to reduce internal interference.
- coaxial cables are made of a single copper wire surrounded by a plastic layer for insulation and a metallic mesh which provides shielding from outside interference.
- fibre optic cables transmit data as light. they are high performance and therefore expensive cables, as they don’t suffer interference and can transmit over very large distances without loss of signal quality.
how does a wireless connection work?
- use radio waves to transmit data.
- to set up a wireless network, you need a wireless access point (WAP) device. a WAP is basically a switch that allows devices to connect wirelessly.
- hotspots -> locations where you can connect to a WAP.
- to connect, devices need wireless capability, which is usually built-in, but if not, use a USB dongle. HDMI dongles are popular for TVs.