[Unit 1.1] Components of a computer Flashcards

Computer Systems

1
Q

define main memory

A

storage locations that are directly accessible by CPU. faster but lower capacity than secondary storage

more expensive than secondary storage (per GB)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

define secondary storage

A

storage the computer can store all data not used but needed in long term

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is RAM

A

Random access memory, where programs being run are temporarily stored:a
OS, programs, data running

Volatile (lost when power shuts off)
directly accessible by CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is ROM

A

Read only memory.
can be read from but not written to
non volatile
smaller capacity than RAM

stores firmware/software rarely changed:
-BIOS, embedded systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is flash memory

A

non volatile memory that can be changed to update BIOS

counts as ROM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does the BIOS do

A

initialises hardware and boots up computer

loads OS from secondary storage to RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is virtual memory

A

use of secondary storage as RAM by OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how does virtual memory work

A

memory split by OS into pages
less used pages move into VM
when pages in VM are needed they can be swapped back into RAM

this is a slow process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what are the disadvantages of virtual memory

A

if it is used all the time the computer will pause when switching between apps.

this is called thrashing.
it lowers the life expectancy of SSD.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is parallel processing

A

simultaneous processing of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are the four ways of achieving parallel processing

A

pipelining

GPUs

Multicores processing

distributed computing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how does pipelining achieve parallel processing. what are the disadvantages

A

Fetch decode and execute at the same time

increases instructions processed in given time

complicated to build

branching instructions degrade performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how does multicore processing achieve parallel processing

A

2 or more independent processing units

each core executes instructions independently

-each core does its own pipelining

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

how does a GPU achieve parallel processing

A

it is a specialised processor to perform graphical calculations

allowing main CPU to perform other tasks

perform same calc to multiple data at same time

has thousands of cores

has its own ram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how does distributed computing achieve parallel processing

A

multiple computers work across a network to solve a common problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what are the limitations of parallel processing

A

task interdependency (not all tasks can be parallelised)

scalability constraints

specialised software (multiple cores has to be coded to be used)

amdahls law (performance limited by parts of problem that cant be parallelised)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

what are the advantages of parallel processing

A

faster for handling large amounts of data

not limited by von neumann bottleneck

is using maximum power of CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

what is a CISC design for the CPU

A

Complex Instruction Set Computer

has a large instruction set built in
-hardware more complicated but software easier

single instruction may take many clock cycles

allows for powerful instructions at cost of slower and larger CPU

Desktops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

what are the advantages of a CISC design for the CPU

A

simplifies programming

easier for compilers

easier for low level programmers

shorter programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

what are the disadvantages of a CISC design for the CPU

A

more hardware needed

more transistors

larger in size

more expensive

consumes more power

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

what is a RISC design for the CPU

A

Reduced Instruction Set Computer

has small highly optimised instruction set built in
-simpler hardware, harder software

complex instructions arent used frequently

each instruction carried out in 1 cycle of FDE

Phones and embedded systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

what are the advantages of a RISC design for a CPU

A

less transistors

easier to design

smaller in size

more power efficient

cheaper

pipelining can be implemented easier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

what are the disadvantages of a RISC design for a CPU

A

more software for complex tasks

longer programs

large number of general purpose registers needed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

what other uses do GPUs have

A

cryptomining

AI and ML

scientific simulations

modelling

editing

gaming

data analysis

cryptography

VR and AR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is Moore’s Law

A

The number of transistors on CPU double every 2 years (approx) from 1965

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What are the 5 special purpose registers?

A

PC, CIR, MAR, MDR, ACC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What is the PC

A

stores the address of the next instruction to be fetched.

increments by 1 after each FDE cycle.

However, instructions can modify next address if it is elsewhere

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is the CIR

A

stores most recently fetched instruction, waiting to be decoded and executed.

29
Q

What is the MAR

A

Stores the memory address of the instruction waiting to be fetched from memory

30
Q

What is the MDR

A

Stores the data of the instruction which has just been fetched from memory

31
Q

What is the ACC

A

stores the results from the ALU

32
Q

What is the address bus

A

provides memory address to system memory or I/O devices

33
Q

what is the data bus

A

transfers data between CPU and memory or I/O devices

34
Q

What is the control bus

A

provides control signals that cause the memory or I/O devices to perform a read or write operation.

35
Q

What is the use of general purpose registers

A

to hold intermediate results while working through a calculation or algorithm.

36
Q

What happens during the fetch stage of the FDE cycle

A

1-PC copies address of next instruction into MAR

2-CU loads address to be used onto address bus

3-CU sends a read signal down the control bus

-causing RAM to place instruction asked for on data bus

4-Instruction on data bus loaded into MDR

5-MDR copies into CIR

6-PC incremented by one or jump instruction

37
Q

What happens during the decode stage of the FDE cycle

A

CU examines instruction in CIR and decodes

(each CPU has own instruction set that defines decoder)

38
Q

What happens during the execute stage of the FDE cycle

A

-instruction in CIR is carried out by CPU

-repeat FDE cycle with next instruction

39
Q

what is clock speed

A

how quickly CPU can carry out FDE cycle

sends pulse at fixed intervals triggering next stage in FDE

40
Q

what is cache

A

small amount of very fast memory built into CPU

(holds instructions frequently used)

41
Q

what are the 3 levels of cache

A

L1 - smallest, fastest, expensive

L3 - largest, slowest, cheapest

42
Q

what is the core (CPU)

A

a complete processing unit (CU,ALU,registers)

43
Q

what are the benefits of having multiple cores in a cpu

A

more instructions can be carried out at same time

-multitasking
-parallel processing

44
Q

what is parallel processing

A

splitting program between cores to execute faster

45
Q

what is pipelining

A

technique of fetching an instruction while prior is being decoded and one before is being executed

-more operations happening in same amount of time

46
Q

what are the issues with pipelining

A

sometimes programs branch (jumps to out of sequence instructions)

-cpu has to do “branch prediction”

-if an error is made the pipelines have to be flushed

47
Q

what are the issues of having multiple cores in a CPU

A

programs have to be written to take advantage of the multiple cores.

48
Q

What are the 5 components of the Von Neumann Architecture

A

-Memory (hold data and program)

-Control unit

-Input/Output devices

-ALU

-Bus

49
Q

What are the 2 problems with the Von Neumann Architecture

A

1- cpu is faster than the bus
- Von Neumann Bottleneck

2- data and programs share memory
- can write data over instructions

50
Q

Key features of Harvard architecture

A

-keeps data and programs separate in memory

-data and program have separate buses

-data and instructions can be fetched at same time

51
Q

define storage devices

A

hold data and programs for long term

52
Q

6 factors that you consider when choosing secondary storage

A

cost (per GB)
speed
capacity
durability
reliability
portablility

53
Q

what are the three types of secondary storage

A

magnetic
flash/solid state
optical

54
Q

how does magnetic storage work

A

magnetisable material represents a 0 or 1 depending on its polarised state (N or S)

55
Q

(Dis)advantages of magnetic storage

A

Ad:
high capacity
cheap per GB

Dis:
vulnerable to magnetic fields, xrays and shock
not as reliable as others.

56
Q

how does optical storage work

A

laser and sensor detects reflection to determine where pits are. represent 0s and 1s

57
Q

(dis)advantages of optical storage

A

Ad:
cheap (for small amounts)
portable
reliable and durable

dis:
expensive (perGB)
slow read/write
computers no longer have disc drives

58
Q

what are the different types of optical discs

A

CD-ROM: read only, 700MB
DVD-ROM: read only, 4.7GB
BluRay: read only, 25GB
CD/BluRay/DVD-R: recordable once
CD/BluRay/DVD-RW: rewritable multiple times

59
Q

what is flash memory

A

a specific implementation of solid state memory that we use

60
Q

what are the advantages of solid state memory

A

no moving parts
high read/write speeds
unaffected by shocks (robust)
lower power consumption
silent
portable

61
Q

what the disadvantages of solid state memory

A

more expensive per GB
limited number of read/write cycles

62
Q

Why cant SSDs be used for archiving files

A

with power the transistors charge are refreshed.
without power, charge dissipates

63
Q

define input devices

A

peripherals used to provide data and control signals to a computer system

64
Q

what are examples of input devices

A

keyboard
mouse
microphone
barcode reader

65
Q

what are biometrics

A

identifying people using unique characteristics (e.g iris)
users must opt in and consent to the storage and processing of their personal data

66
Q

what are examples of sensors

A

GPS, accelerometer, gyroscope, pedometer

67
Q

what should be considered when choosing an input device

A

cost
speed
accuracy
reliability

68
Q

define output devices

A

display result of processing data to the user

69
Q

what are examples of output devices

A

monitors
printers
speakers
projectors
motors.