P1L3: Operating Systems Flashcards
What does an Operating System do? What does it provide?
- -Makes it easier to use resources
- -Hardware controlled by OS
- -Provides isolation
What is a Trusted Computing Base (TCB)?
–OS has direct control of hardware resources
–OS must determine authorized user(s) of resources
What are TCB Requirements?
- Complete Mediation–OS is between HW resources and apps
- OS must be tamper-proof
- OS must be correct–Protected resources are used properly.
OS and Resource Protection
–Establish the source of the request (ie authentication)
–Authorization or Access Control
–OS follows policies for authorization and authentication
What are System calls?
A request to the operating system.
What is Complete Mediation?
Ensures that the OS cannot be bypassed when accessing a protected resource
What are the requirements for isolation?
–requires HW support for memory protection
–The processor must keep track of what kind of code is being executed
–Privileged instructions can only be executed in system mode
Are system calls more expensive than regular function calls? If so, why?
Yes. Because of the info that must be saved, the memory mapping that must be done, and the special instructions.
What is Memory Protection?
The HW determines if memory belongs to the OS and is therefore unwritable to users.
How do processes achieve unit isolation?
Each process gets an address space for it to use
What are Physical addresses?
Point to actual RAM or physical memory
What are Logical addresses?
Point to the address space
What is Address translation?
The translation between the logical and physical memory.
Logical addresses are stored on ____
pages
Physical addresses are stored on _____
frames