Set 2 Flashcards
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 an interrupt runs.
The processor receives the interrupt
The processor completes the fetch-decode-execute cycle of the instruction that it was running when it received the interrupt
The current contents of the processor registers (including the program counter) are saved to memory
The origin of the interrupt is identified so that the appropriate ISR is called
All other lower-priority interrupts are put on hold to allow the ISR to finish running
The program counter is updated with the address of the first instruction of the ISR
The ISR completes its execution
The processor registers are reloaded with the values that were saved to memory
The lower-priority interrupts that were put on hold are re-established
The program counter is set to point to the address of the next instruction that needs to be executed in the program that the processor was running when it received the interrupt
How could you improve the performance of a computer?
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
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 bibibytes
List the prefixes starting kibi…
- kibi
- mebi
- gibi
- tebi
What is a character set?
A character set is a standardised collection of characters and the bit-patterns used to represent them
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 sometimes used as parity bit instead
How does ASCII work?
- Each of the characters is assigned a denary 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