week 1 Flashcards
multiplexing
sharing of resources over time and space
basic cycle of the CPU
fetch instruction from memory
decode instruction to determine type and operands
execute instruction
general registers
contained within CPU
holds key variables and temporary results
used because accessing memory is a time expensive operation
special registers
registers in CPU with specific purposes
visible to the programmer
eg.
PC: program counter, contains memory address of the next instruction to be fetched
SP: stack pointer, points to the top of the current stack in memory
PSW: program status word, contains condition bits set by comparison instructions, CPU priority, mode, other control bits
pipeline
organisation where CPU is designed to split up tasks to execute more than one instruction at a time
kernel vs user mode
in kernel mode the CPU can execute every instruction and access every hardware
user mode: limited access
system call
method in which the user can request to obtain services from the OS i.e. services that run in kernel mode