Operating Systems Flashcards
Whats a operating system
Program that acts as an interface between the computer user and computer hardware, and controls the execution of programs
WHat 3 parts does the OS manage
Memory
Processing
Hardware/Software on computer
What are some responsibility of OS
file management, memory management, I/O handling, and peripheral device management
What is process management
The OS handles one process at a time but is so fast it may seem like its concurrent
Virtual memory serves 3 purposes…what are they
assure that each process has a unique address space
provide memory protection to prevent processes from using memory addresses
allow an application to use more memory than what is physically available
Purpose of I/O management
Allows us to easily add additional hardware and configure it
Whats the purpose of the secondary storage
For program to run data and its accesses the data must be in primary memory. The secondary is used to back up the main memory
What is process management
Involves various tasks like creation, scheduling, termination of processes, and a dead lock.
What must the OS do for process management
it must allocate resources that enable processes to share and exchange info. Also protects it from other methods that allow sync among processes
What are the 4 architecture blocks of Process
Stack
Heap
Data
Text
What is stack?
stores temporary data like function parameters, return addresses, and local variables
Heap
allocates memory, which may be processed during run time
data
contains a varaible
text
includes current activity
What is the PCB and what does it do
Process Control Block
- Data structure that is maintained by the OS for every process
- Helps you store all the info required to keep track of all running process
- store contents of processor registers