Operating Systems Flashcards
Two Objectives of Operating System
Convenience and Efficiency
What is an Operating System
Program that controls the execution of application programs and acts an interface between applications and the computer hardware
How does an operating system conceal complexity?
Protect users and programmers from having to work with horrendous complexity
How do the OS and hardware work together?
- Protects the programmer and user from the details of the hardware
- Provides a user interface
- Works better if the hardware provides support for the OS
- Developed together
How does the OS do memory management?
- Allocate memory to programs
- Manage Virtual Memory
- Protect against programming errors & malware
How does the OS do Task management?
- Launch processes
- Maintain process table: list of running processes
- Carry out timeslicing and context switching
- Handle interrupts
- Set program privilege levels
How does the OS do File management?
- Respond to program requests to open, read, write and close files
- Set and check permissions
- Handle buffering
How does the OS do Device management?
Use device drivers to respond to requests to open, read, write and close devices
Essential hardware features for an OS
- Memory protection
- Timer
- Privileged instructions
- Interrupts
What is a process?
Running a program
What does a process include?
- Code
- Data
- Resources
- Current state: registers
What is context switching?
The state of a running process is saved, and another process is given processor resources
What is a process control block?
A data structure used by a computer operating system to store all the information about a process
What are the different types of scheduling?
- Long-term scheduling
- Medium-term scheduling
- Short-term scheduling
- I/O scheduling
What is long-term scheduling?
The decision to add to the pool of processes to be executed