Set 2 Flashcards
Checked by Matt. Covers content between SA1 and SA2 in the BPCompSci topic list
Describe what an interrupt is and explain the purpose of interrupts.
A signal is sent to the processor (from a hardware device or program)
So that a device or source that needs the immediate attention of the processor can be dealt with.
Describe how the hardware of a computer could be improved so that programs can be executed more quickly.
- Replace the processor with one which has more cores
- Replace the processor with one which has more cache memory
- Increase clock speed of processor
- Use a parallel processor architecture
- Use a processor with a bigger word size
- Use a processor that makes (better) use of pipelining
- Install more RAM // main memory // primary memory
- Use RAM with a faster access time
- Replace the motherboard with one which has buses which run at a faster clock speed
- Replace the motherboard with one which has more lines in data bus
How many bytes are in a kilo/mega/giga byte?
1 thousand/1 million/1 billion or 1000/1,000,000/1,000,000,000
How many bytes are in a kibibtye?
1024 bytes
How many kibibytes are in a mebibyte?
1024 kibibytes
List the prefixes starting kibi…
- kibi
- mebi
- gibi
- tebi
How many bits does ASCII use? How many characters can it represent?
- ASCII uses 7 bits to represent characters (hence max 128 characters)
- However, 8 bits are used to store each character (preceding 0)
- The leading 0 is sometimes used as parity bit instead
How does ASCII work?
- Each of the characters is assigned a numeric character code
- Which is represented and stored in the computer as binary
What is the downside of ASCII?
ASCII is not sufficient to represent all of the languages and scripts used around the world
Why is unicode needed?
- ASCII can’t represent all languages and scripts
- ASCII can’t represent all possible symbols
- The World Wide Web made it important to have a universal international coding system
Which is the most common unicode encoding standard used?
UTF-8
What are the first 128 codes in unicode the same as?
The first 128 codes in ASCII
What is clock speed?
The frequency at which the system clock ticks
What is word length?
Word Length is the number of bits in a word
(A word is the fixed size unit of data. It affects register size, address size and other aspects of the computer)
What is the address bus width?
- The number of bits that can be used to form an address of a memory location
- Or the number of parallel wires allocated to the address bus
What is the data bus width?
- The number of bits that can be transferred to or from memory in one operation
- Or the number of parallel wires allocated to the data bus
How is fetch time affected if the data bus isn’t big enough for a piece of data?
- the piece of data will be split into multiple parts
- meaning fetch time will be multiplied
What is cache memory? What does it contain?
Cache memory is a relatively small capacity of very fast memory that sits on or close to the processor.
Cache memory contains:
1. Copies of data from frequently used memory locations
2. Pre-fetched instructions
3. Data to be written to main memory
How does increasing cache memory size affect processor performance?
- Increasing cache size means more instructions and data can be stored in cache
- So main memory needs to be accessed less frequently
- Cache memory is faster to access than main memory
- So throughput is increased and response time is reduced
How does increasing the number of cores affect processor performance?
- Multiple tasks can be run at the same time
- A single task can be split over multiple processors
- Many programs are now written to optimise the use of parallel processing
- This increases throughput
- However, increasing the number of cores greatly increasing complexity
4 reasons secondary storage is needed
- Main memory is volatile, so secondary storage needed to store files that are needed multiple times
- Secondary storage can be used to store larger files, as it usually has a much higher capacity than main memory
- Secondary storage can be used for virtual memory
- Main memory is expensive
What is the effect of increasing data bus width?
- more bits can be transferred between main memory and the processor in one operation
- so fewer read/write operations are needed
- so there are fewer delays when retrieving data
What is the effect of increasing address bus width?
- The processor can access a larger number of memory locations
- so the CPU doesn’t have to access secondary storage as often
- which reduces the reliance on virtual memory
- Increased scalability and increased throughput
What is the effect (and downside) of increasing word length?
- Longer word length means registers can store more bits, so the processor can process more bits in one go
- Also, complicated value splitting is required if the operand size is larger than the word length
- however if word length is increased, more memory is wasted when storing small values