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, in detail, the steps taken by the processor to service an interrupt.
- 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. This is called the volatile environment
- The origin of the interrupt is identified so that the appropriate ISR (Interrupt Service Routine) 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 volatile environment is reloaded with the values that were saved to memory
- The lower-priority interrupts that were put on hold are re-enabled
- 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
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 A. Increase number of cores
- Replace the processor with one which has more cache memory // increase the amount of cache memory // add cache memory
- Increase clock speed of processor // replace the processor with one which runs at a faster clock speed NE. faster processor
- Use a parallel processor architecture // use more processors which can work in parallel
- 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 // main memory // primary memory with a faster access time
- Replace the motherboard with one which has buses which run at a faster clock speed A. increase bus clock speed
- Replace the motherboard with one which has more lines in data bus A. increase number of lines in data bus
- A. Replace HDDs with SSDs // replace HDDS with HDDs that can read data at a faster rate // replace SSDS with SSDs that can read data at a faster rate
- A. Use the Harvard architecture instead of the von Neumann architecture
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
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 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)