Lecture 1&2: Introduction and Computer System Structure Flashcards
Define operating system
a program that acts as intermediary between user and computer hardware
4 components of computer system
- hardware - cpu, memory, I/O devices
- operating system
- application programs - web browser, compiler
- users - people, machine
handheld computer
- has poor resources
- optimized usability
- optimized battery life
2 main uses of operating system
- resource manager
- manage all resources and decide between conflicting request - program controller
- control program execution to prevent errors and improper uses of computer
function of bootstrap program
- initialize all aspects of system
- load OS kernel
- start execution
how computer system operation works
One or more CPU and device controller is connected through common bus providing access to shared memory
- each device controller has a local buffer
- CPU move data from/to main memory to/from local buffer
- I/O is from device to local buffer of controller
- device controller informs CPU finishing operation by causing interrupt
what is trap
software-generated interrupt caused by user request or an error
how to prevent lost interrupt
incoming interrupt is disabled while another interrupt is being processed
2 types of interrupt
- pooling
- vectored-interrupt system
what is system call
- request to OS to allow user wait for I/O completion
how direct memory access structure works
- transmit information at close to memory speed
- device controller transfer block of data directly from buffer storage to main memory
- without CPU intervention
** only one interrupt is generated per block
3 types of storage
- main storage (volatile)
- secondary storage (non-volatile)
- magnetic disks
storage system heirachy
- speed
- cost
- volatility
what is caching
transfer information into faster storage system
**main memory can be considered as cache of secondary storage
advantages of multiprocessors
- increased reliability
- increased throughput
- economy of scale