Lecture Notes for Operating Systems
12 September 2001 - System Architecture
- the von neumann architecture - the cockroach of computer architectures
- stored-program computer
- a computer is a giant state machine
- instructions and data are the same
- the pieces
- the cpu - the brain in powerful electronic brain
- the registers - state
- data registers
- control and status registers
- the cache - more state; also off-chip cache
- the alu
- the control unit
- physical memory
- a big array of units - bytes, words, whatever
- memory is actually another device
- volatile vs. non-volatile - ram vs. rom
- memory structure is actually complicated - squeezing out maximum
performance is tricky
- power-managed memory
- devices
- general device characteristics
- like special purpose computers - limited instruction set
- many classifications - character or block, synchronous or
asynchronous, serial or parallel, storage or communication
- device controllers - the interface to the device
- generally a bunch of registers - some read, some write, some
read-write
- device registers may be require special cpu instructions or look
like memory
- other forms of cpu-device communication for large amounts of data -
buffers
- device drivers - what the operating system provides
- other pieces
- memory management unit - mmu
- on (fast and small) or off (large and slow) the cpu chip
- clocks and timers - countdown and running
- interconnections
- busses - ties the components together
- address, data, io bus
- bus width and speed - less wide busses are slower
- bus arbitration
- many busses, dual-ported memory
- interrupts - how devices get the cpu's attention
- an interrupt is an electric signal sent along a wire
- interrupts stop the current instruction sequence and start another
one - what's the state just after the interrupt
- other information may be included - device id, interrupt id (called
the interrupt level)
- the choice of alternative instruction stream may vary - interrupt
vector
- interrupts can be disabled - dangerous
- caches - fast, small memory
- on-chip or off-chip caches (cpu)
- caching is a useful technique for speed-up
- a cache represents a lot of state
- buffers are caches made out of regular memory
- operation
- boot up - what happens when the power goes on
- read in a boot program from somewhere (rom, the boot sector on disk),
then execute it
- basic operation - fetch, execute, store
- operation modes or spaces
- a process turning off interrupts owns the cpu - not nice
- protection and efficient management require access restrictions
- cpu operating modes - some modes can't execute some instructions
- user or kernel modes - kernel mode can do anything; user mode can't
- traps - user level instructions that switch to kernel mode; an
interrupt
This page last modified on 12 September 2001.