Test Flashcards
Difference between serial process and parallel processes
Serial sends a single bit at a time while parallel send multiple. Serial higher frequency, parallel lower. Serial fewer traces required, parallel more.
What is RISC
Execute all instructions in a single cycle. Only read/ write to memory with load/store instructions. Requires many registers to be efficient. No microcode
What is CISC?
Complicated instructions that do multiple things at once. Harder to decide and implement, required microcode. Instructions take many cycles to execute. Small number of registers
Instruction pipeline
Fetch
Decode and register fetch
Execute
Memory access
Register write back
Virtual memory principle
Processor request data from RAM. If data is in RAM, it will be fetched immediately. If the data is not in RAM, it will be requested from the disk. Data will be transferred from disk to RAM. the processor can now get them from RAM
How does cache make cpu efficient?
It can quickly transfer information between the ram and cpu compared to how many cpu cycles it would take
What is buffer overflow
If data entered is above the maximum, it is stored in memory and can be overflowed to store the out text
Attacks against speculative execution
Mmu doesn’t check for permission to access memory. When it find the path to take, the cpu hits undo on the changes the wrong branch made. Doesn’t undo changes to cache
Difference between cpu time sharing and multitasking
Time sharing is a fixed window of time for a process to execute on the pc and switches to another process when time sharing is over. Multitasking is switching the process at natural break points. Allows for prioritisation of processed.