Lecture 1 Flashcards
What are the main parts of a computer
CPU, RAM, I/O devices
What is instruction-level parallelism?
When instructions in a sequence are independent and can be executed in parallel by overlapping.
What is a dependency?
Where one instruction is dependent on another to be able to place.
Give an anology to cooking for process
Cooking a recipe
What does a scheduler choose?
The next running process.
What is something that is ready and waiting to be executed called.
‘ready state’
What ‘switch’ could contribute to deadlock?
Process switch
What device would you use for scheduling across multiple cores?
A central scheduler.
What would a central scheduler be aware of?
All CPUs across the system.
Name another configuration, other than a central schduler, for dealing with scheduling across cores?
Distributed CPUs aware of each other.
What would distributed CPUs have to do in a bid to prevent deadlock or scheduling issues?
Send signals to each other.
Pass work to each other based on resource.
What would distributed CPUs have to do in a bid to prevent deadlock or scheduling issues?
Send signals to each other.
Pass work to each other based on resource.
What is a register?
CPU internal storage
What is the PC
Program Counter
What does the program counter do?
Provides the address of the next instruction
What is IR?
Instruction register
What does the instruction register do?
Contains the 8-bit op code of the instruction being executed.
What is an MBR?
Memory Buffer Register
What does the memory buffer register do?
Either:
The word to be strored in memory.
Or:
A register that receives a word into it from memory.
What is an MAR?
Memory Address Register
What does the memory address register do?
Specifies the adress in memory of the word to be written from or read into the MBR.
What does the memory address register do?
Specifies the adress in memory of the word to be written from or read into the MBR.
What do interrupts allow for?
Allows CPU to continue with processes while something else goes on (printing / writing to a disk)
Is the overhead of an interrupt worth the gain?
Yes