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
2 types of multiprocessing
- asymmetric
- symmetric
symmetric clustering
multiple nodes running applications, monitoring each other
asymmetric clustering
has one machine that in hot stand-by mode
define clustered system
like multiprocessor system, but multiple system working together
- usually share data using SAN (storage area network)
How multiprogramming works
- organized job so that CPU always has one to execute
- subset of total jobs are stored in memory
- one job is selected and run via job scheduling
define multitasking (time-sharing)
logical extension which CPU switches job frequently allowing users to interact with each job while it is running, creating interactive computing
time-sharing
- response time should be less than 1 second
- CPU scheduling allow several jobs run at a same time
- process: at least one program is executing in memory
- swapping when the process do not fit in memory
- virtual memory allow execution of process not only in memory
what is dual mode
user mode and kernel mode
function of system call
change mode to kernel