Computer Systems Flashcards

1
Q

Hardware

A
  • The physical components of a system
  • Includes both internal and external components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Software

A
  • The name given to program code
  • Comprised of sequences of instructions that are executed in order to perform a task
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Types of software

A
  • Application software
  • System software
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Application software

A
  • Programs that complete a specific task for the user
  • e.g web browsers, spreadsheet software, word processors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

System software

A

Software that operates, controls and maintains the computer and its components

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

Types of system software

A
  • Operating systems
  • Utility programs
  • Library programs
  • Translators
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Operating system

A
  • Allows the user to control the computer
  • Provides a virtual machine to hide the true complexity of the computer from the user
  • Manages and controls access to the computer’s resources (memory management, processor scheduling, handling interrupts)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Utility programs

A

Used to complete housekeeping tasks like:
- Data backup
- Defragmenting hard drives
- Data compression
- Encryption

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

Library programs

A
  • Contain helpful, frequently used programs
  • Must be imported within the program code
  • Simplifies the process of application development
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Low level languages

A
  • Are processor specific
  • Directly manipulate the processor
  • Are difficult to code with and are prone to errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Types of low level languages

A
  • Machine code
  • Assembly code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Machine code

A
  • Uses only the binary digits 0 and 1
  • Programs are long and very difficult to code and debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Assembly language

A
  • Developed to simplify the coding process
  • Mnemonics are used in place of binary instructions
  • Each instruction has a 1-to-1 correlation to a machine code instruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

High level langauges

A
  • Are not platform specific
  • Must be translated into machine code by a compiler or interpreter
  • Uses English instructions and mathematical symbols
  • Contains built in functions, variables, indentation and commenting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Types of program translator:

A
  • Assemblers
  • Compilers
  • Interpreters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Assemblers

A
  • Translate assembly language into machine code
  • Are platform specific
  • Translation is quick and straightforward
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Compilers

A
  • Translate high-level languages into machine code
  • Are platform specific
  • Takes the high-level program as their source code and checks for errors line-by-line
  • Translates the entire program at once if the source code is error free
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Interpreters

A
  • Translate high-level languages into machine code
  • Translate line by line, using procedures to translate each kind of program instruction
  • Both the interpreter and the source code must be present for a program to be ran
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Components of the computer

A
  • Processor
  • Main memory
  • Address bus
  • Data bus
  • Control bus
  • I/O controllers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Processor

A
  • Executes program instructions in order to run applications
  • Contains an ALU, CU and numerous registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Main memory

A
  • Includes RAM and ROM
  • Stores program instructions and frequently used data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Buses

A
  • A series of parallel wires that connect internal components of a computer system
  • Allows for the transfer of signals between components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Bus width

A
  • The number of parallel wires
  • Has a direct relationship with the number of bits that can be transferred simultaneously
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Address bus

A
  • Used to transport memory addresses
  • Specifies where in memory data is be sent to or retrieved from
  • Each wire added doubles the number of addressable memory locations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Data bus

A
  • Sends data and instructions to and from the different components of the computer system
  • Increases the width increases the volume of data that can be transferred at one time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Control bus

A
  • Used to carry control signals that regulate the operation of the computer system
  • Controls the computer’s clock signal
27
Q

I/O controllers

A

Hardware that control the communication of data between the processor and external hardware devices

28
Q

Harvard architecture

A
  • The processor uses 2 separate main memory locations (1 for data, 1 for instructions)
  • Each piece of main memory can have different characteristics
  • Used in embedded systems
29
Q

Von Neumann architecture

A
  • Both instructions and data are stored together in the same memory
  • Buses are shared for fetching both instructions and data
  • Used in general-purpose computer systems
30
Q

Stored program concept

A
  • Machine code instructions are stored in main memory
  • Instructions are fetched and executed serially
  • By a processor that performs arithmetic and logical operations
31
Q

Advantages of the stored program concept

A
  • Allows for one set of instructions to be switched out for another
  • Allows modern computers to run numerous different applications
  • Contents of a memory location can be interpreted as instructions or data
32
Q

Arithmetic logic unit

A

Performs arithmetic (+, -, etc) and logical (AND, OR, etc) operations

33
Q

Control unit

A
  • Responsible for controlling the various parts of the processor by coordinating the data flow and generating control signals
  • Controls the fetch-execute cycle
34
Q

Registers

A
  • Small storage locations used to hold data temporarily
  • High read and write speeds
35
Q

Types of registers

A
  • General purpose registers
  • Special purpose registers
36
Q

General purpose registers

A

Registers that are used as storage for any data required by instructions during execution

37
Q

Special purpose registers

A

Registers that are assigned to store specific information

38
Q

Types of special purpose registers

A
  • PC
  • CIR
  • MAR
  • MBR
  • SR
39
Q

Program counter

A

Holds the memory address of the next instruction to be executed in the fetch execute cycle

40
Q

Current instruction register

A

Holds the instruction that is currently being executed by the processor

41
Q

Memory address register

A

Stores the memory address of a memory location that is to be read from or written to

42
Q

Memory buffer register

A

Holds the contents of a memory location that has been read from or data is to be stored

43
Q

Clock

A
  • Generates a timing signal of regular size and frequency
  • Used to synchronise communication between components of the processor and the rest of the computer system
44
Q

Fetch-execute cycle

A
  • A continuous cycle performed by the processor to execute programs
  • Consists of 3 stages (Fetch, Execute, Decode)
45
Q

Fetch

A

The next instruction to be executed is retrieved from main memory:
- The content of the PC is copied to the MAR
- The content of the MAR is transferred to main memory by the address bus
- The instruction is sent from main memory to the MBR by the data bus

46
Q

Decode

A

The fetched instruction is decoded:
- The contents of the CIR is decoded by the CU
- The decoded instruction is split into the opcode and operand

47
Q

Execute

A

The instruction is carried out:
- Any additional data not in the registers are fetched
- The instruction is carried out
- The results are stored in GPR or main memory

48
Q

Interrupt checking

A
  • The processor checks for interrupts between each cycle
  • The content of the SR is checked for changes
  • A change could signal the occurrence of an interrupt
49
Q

Interrupt

A

Signals sent to the processor by another part of the computer requesting the attention of the processor

50
Q

Processor instruction set

A
  • The group of instructions that a processor can carry out
  • Each processor has a unique instruction set with instructions that may not be compatible with other processors
51
Q

Processor instructions

A
  • Stored in machine code
  • Consist of the opcode and operand
52
Q

Opcode

A

The type of operation to be carried out

53
Q

Operand

A

The pieces of data on which the operation is performed

54
Q

Immediate addressing

A

The operand specifies the actual value to be used

55
Q

Direct addressing

A

The operand specifies the memory address where the value to be used is stored

56
Q

Logical shift

A
  • An operation performed on binary numbers
  • Involves shifting all the bits a specified number of positions
  • The result is a number that has been halved/doubled a specified number of times
57
Q

Vectored interrupt method

A
  • The processor stops executing the current program and places the cont of its registers on the system stack
  • The processor loads the appropriate interrupt service routine
  • Once the interrupt has been handled the processor restores the volatile environment
58
Q

Factors affecting performance

A
  • Number of cores
  • Cache memory
  • Clock speed
  • Word length
  • Bus width
59
Q

Number of cores

A
  • Each core can perform its own fetch-execute cycle
  • Different applications can be allocated different cores
60
Q

Cache memory

A
  • A small amount of incredible fast memory
  • Stores frequently accessed information
  • More cache memory allows more time to be saved fetching data and instructions
61
Q

Clock speed

A
  • The frequency of pulses generated by the system clock
  • A higher frequency allows for more fetch-execute cycles to be performed
62
Q

Word length

A
  • A word is a group of bits that is treated as a single unit by the processor
  • Larger word lengths allow for more bits to be transferred and manipulated at once
63
Q

Bus width

A
  • A larger width is achieved by adding more parallel wires
  • A wider address bus allows for more addressable memory
  • A wider data bus increases the volume of data that can be transferred at once