Operating Systems Flashcards
What is a multi programmed batch, and how did it improve from batch OS?
Multi-programmed batch OS takes in and runs multiple types of jobs at a time, in “batches.” It does so by filtering through a job pool.
Improvements: Less CPU idle time and faster run time.
What is a PCB? How is it important to muti-program batch?
PCB (Process Control Block).
It is important for MPB because it helps jobs(processes) be resumed/paused smoothly, making switching between jobs a more efficient process.
PCB Components:
-Context Data
-Process ID
-Priority
-User Account Info
-Processing State
Context Data:
Pointers, registers used, and other information that is stored in a PCB to better understand the process running and to help resume/pause a program.
Process ID:
ID to identify a process.
Priority
“Height of importance” of a process.
User Account Info:
Identifying information of the user who sent the program.
Processing State:
(Running, wait, I/O, ready…)
Difference between process and program
Process is a set of instructions in an active state, actively used by the CPU. Program is passively stored instructions, waiting in memory to be run.
Define PCB:
A block of memory created when a process is created. It is designed to store any relevant information about the instructions in a process. Processes that are created and sent to job pool.
What actions can be taken on a process?
Processes can be: created, terminated, suspended, and interrupted.
Before New Queue:
Program has to be pulled from memory.
Before Ready Queue:
Creation of process and PCB, scheduled by long-term.
Before Run Queue:
Scheduled by short-term scheduler.
Before Wait Queue:
An event is triggered that needs I/O or another response from the computer.
Run to Ready:
A flag is marked somewhere in the instructions, causing the process to be paused.