Week 1 Flashcards
(38 cards)
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
What are magic numbers in files?
Sequence of bytes at beginning of file
What are examples of meta data?:
Name
Identifier
Type
Location
Size
Timestamps
Permissions
Where is Meta Data stored in linux?
In an Inode
What are the 2 features of Linux Files?
Everything is a file
Files represented by tree-like inode pointer structures
What are some examples of Linux file types?
Regular files
Special files (character of block)
Directories
Pipes
Links (soft or hard)
What is a hard link?
Another name for an existing file
points directly to inode of file
If file is moved/deleted the link will still work
what is a soft link?
A pointer to filename
If file is moved/deleted, the link will not work
How is the storage space divided for files?
Filesystems divide storage space into fixed-size blocks
Typical block size is 4096 bytes (4KB)
What can a file be broken down into?
into chunks that fit into blocks