Week 1 and 2 Flashcards
(41 cards)
What is an operating system?
A program that acts as an intermediary between a user and the computer hardware
Def: Resource Allocator
Manage and allocate resources. Provide a uniform interface to similar hardware.
Def: Control Program
Controls the execution of user programs. Controls operation of I/O devices (i.e. disk)
Def: Kernel mode
The one program running at all times. IPL - initial program load
- System operations including user requests
Single Program System vs. Multiprogram System
Single: Early batch mainframe system > pool of jobs each run sequentially, single process at a time. CPU is idle while waiting for I/O (waster cycles)
Multi: Later Batch Mainframe system, pool of jobs (more than one program in memory at a time) When one program is doing I/O, another gets the CPU
What are tightly coupled Parallel systems? advantages? symmetric vs asymmetric?
Processes share memory and I/O
Advantages: increased throughput, reliability
Symmetric: each processor identical, process run on whatever processor is available (may one on more than one during its lifetime)
Asymmetric: Master-slave relationship
What are distributed systems? Advantage?
Distribute computation among several processors (loosely coupled > each process has own memory, I/O devices, communication infrastructure)
Advantages: resource sharing/ load sharing, reliability
Hard real-time systems vs Soft real-time systems?
Hard: hard limits that must be met or the system fails
Soft: A missed deadline does not mean system failure, but value of result decreases with time
Def: Interrupts
Can happen at any time
- Suspends execution of the current program (saves current execution location)
- Transfers control to the interrupt routine
- Determines which controller generated the interrupt (polling, vectored Interrupts)
Def: Traps
Traps are like interrupts, but are generated by the program execution (i.e. Divide by zero)
What is the difference between a Synchronous I/O and an Asynchronous?
Synchronous: control returns to program only after I/O is complete, common in multi user systems
Asynchronous: return directly to program, common in single user system
Def: Main Memory
memory CPU can access directly
Def: Secondary storage
- large nonvolatile storage
- hard disks in the middle
Def: Cache
Very high-speed memory that sits between a processor and main memory. Used to hold recent memory values.
What are the three types of Hardware protection?
Memory protection (user limited to memory allocated for its process) I/O Protection (can only have access if in kernel mode - requires special access) CPU Protection (Way for all programs to use CPU without it disturbing anything aka cooperative multitasking)
Def: User Mode
user program doing user computation
Def: Process
A program in execution and all of the required resources to run that instance of the program
What are some OS activities?
- Process creation and deletion
- Suspension and resumption
- Synchronization and communication
- allocation/ deallocating and keeping track of memory
- deciding which process to load
Def: Memory
a continuous sequence of bytes each of which has own address
Def: File
A collection of related information (can be structured or unstructured)
What is I/O management?
Hide specifics of devices behind device drivers
What is the command interpreter?
- user interface
- accepts commands and executes them
- sometimes built into the system and sometimes separate
What are system calls?
The interface between the running process and the operating system (like most function calls take an argument and return a value)
What are the three communication models?
- Interprocess communication (mechanism an os provides to allow processes to manage shared data - other processes need to communicate)
- Message Model (Os system provides message passing facility)
- Shared memory model (Both processes access same memory)