Week 1 Flashcards
What is an OS?
An OS is a software that manages computer resources and offers abstractions
What is the Kernel?
Central part of OS
Runs all time on the computer
Functionality depends on OS design
What is the Kernel Mode? (Or privileged mode)
Where the kernel runs
CPU has full access to system resources
What is User Mode?
It’s where applications run
CPU has restricted access to system resources
How does the OS switch between kernel and user mode
To switch to kernel mode the trap mode bit is triggered and set to 0, after the task has been performed in kernel mode the return mode bit is set to 1 which brings it back to OS
What is a Monolithic Structure?
Large kernel with most of OS services run in kernel mode
What are the pros and cons of a monolithic structure?
Pros:
Fast performance
Cons:
Stability and Security
Maintenance and Debugging
What is are the pros and cons of a Microkernel Structure?
Pros:
Stability and Security
Cons:
Poor Performance
What are the pros and cons of a Microkernel Structure?
Pros:
Stability and Security
Cons:
Poor Performance
What is a Layered Structure?
OS broken into hierarchy layers
Communication with above and below
Implemented into computer networks (TCP/IP)
What are the pros and cons of a Layered Structure?
Pros:
Easy to maintain debug and test
Security and Stability
Cons:
Poor performance
Design challenges
What is a Modular Structure?
Combines aspects of Monolithic and Microkernels
Start with small kernel
additional services are loaded on demand via modules
What are the pros and cons of a Modular Structure?
Pros:
Fast Performance
Flexibility and Extensibility
Cons:
Monolithic as more modules loaded
Fact
OS’s combine different structures
What is a file?
A file is a named collection of related data stored on non-volatile storage