Module 3: Operating Systems Flashcards
Operating System
Manages the computer’s resources and lets us interact with it
Two main parts of an operating system
- Kernel: Process Manager, Memory Manager, File manager, I/O Manager
- User Space: Applications
What is a Kernel
Main core of OS, talks to hardware and manages system resources.
As Users we don’t interact directly with the Kernel, instead we interact with the user space
What is the User Space?
Everything outside of the Kernel, like system programs, applications, User Interfaces etc.
Most Common OS
Windows
Mac OS
Linux
3 Components to handling Files in an OS
- Data
- Metadata
- File System
Major File system Used for Windows
NTFS
Major File system for Linux
Different distributions have different file systems, but a major one for Linux is EXT4
Block Storage
A method of data storage that improves faster handling of data because the data isn’t stored as one long piece and can be accessed quicker
File Metadata
Provides information ABOUT the file, such as file type or extension, owner, last edited, size, etc.
Process
A program that is executing, like our internet browser or text editor
Program
An application that can be run.
Program vs Process
We can run many processes of the same program at the same time, but you can only have one program.
Like opening multiple chrome tabs at the same time.
How does a Kernel run a program?
The Kernel starts a process, assigns memory and CPU resources to that process and schedules time for it to run. The CPU then executes the process during it’s allocated time slice. The Kernel also manages how processes are terminated
Time Slice
A very short interval of time that get’s allocated to a process for CPU execution.