Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
37 Cards in this Set
- Front
- Back
Process |
is a more than a program code which is sometimes known as the text sections |
|
Program counter |
special register in the cpu that keeps track the memory addresses. It indicates the position of the current code which are the cpu are currently executing |
|
Processors registers |
contents changes frequently as cpu changes instructions. Essential for performing arithmetic and logical operations. |
|
Process stack |
which contains temporary data such as functions parameters, return addresses, and local variables. It includes data sections. Is a region of memory that is allocated for processing for managing data. Organized as LIFO (Last in first out) |
|
1. Process stack 2. Data sections |
Region of memory |
|
Data sections |
which contains the global variables. Typically contains a global and static variable |
|
Heap |
is a memory that is dynamically allocated during process runtime. Is more flexible in memory allocation and reallocation. |
|
Program |
is a passive entity - it is just a file containing a list of instructions stored(executable files) |
|
Process |
is an active entity with a program counter specifying the next instructions to execute |
|
1. New - process is being created 2. Running - the instructions are being executed 3. Waiting - waiting for an event to occur 4. Ready - process is waiting to be assigned to a processor. there is queue 5. Terminated - process is finished executing. |
Process states |
|
process controller block (PCB) |
each process is represented in the operating system by a |
|
process controller block (PCB) |
also called a task control block |
|
process control block (PCB) |
Type of data structure that operating uses to manage and track information about each process that is running in our computer system. It serves as a blueprint for operating systems to manage and understand the state. |
|
1. Process States 2. Program Counter 3. CPU Registers 4. CPU Scheduling Information 5. Memory management information |
The PCB typically contains a variety of information about the process, including: __ |
|
Process States |
maintain current information about the current state of the process |
|
Program Counter |
is a type of register. considered as a register. since it is a memory, it stores the address of the next instructions that the cpu will execute. |
|
CPU Scheduling Information |
contains details or informations that is related to cpu scheduling such as priority(scheduling algorithms, time spent executing) helps os to decide about which process to execute next based on scheduling criteria (fairness). |
|
Memory management information |
based and limit registers specifying the range of the memory. other memory related data. |
|
Process Scheduling |
activity of the process manager that handles the removal of the running process from the CPU and the selection of another process based on a particular strategy. Core activity of operating system process management |
|
1. Non-preemptive 2. Preemptive |
Categories of Scheduling |
|
Non-preemptive |
it is also known as cooperative scheduling |
|
Non-preemptive |
It allows a process to keep the cpu until it voluntarily relinquish its control. |
|
Preemptive |
the os assigns resources to a process for a predetermined period. The process switches from running state to ready state or from waiting for state to ready state during resource allocation. |
|
Preemptive |
It can occur for various systems: Occurrence of event that requires immediate action. |
|
1. Long Term or Job Scheduler 2. Short-Term or CPU Scheduler 3. Medium-Term Scheduler |
Types of Process Schedulers |
|
Long Term or Job Scheduler |
it plays a very crucial role in managing the number of processes in ready state. It brings new process to the ‘Ready state’. It controls the Degree of Multi-programming |
|
Short-Term or CPU Scheduler |
it is responsible for selecting one process from the ready state for scheduling it on the running state. |
|
Medium-Term Scheduler- |
It is responsible for suspending and resuming process. It mainly does swapping |
|
1.I/O Schedulers 2. Real-Time Schedulers |
Other Schedulers |
|
I/O Schedulers |
re in charge of managing execution of I/O operations such as reading and writing to discs or networks FCFS (First-Come, First-Served) or RR (Round Robin). |
|
Real-Time Schedulers |
ensure that critical tasks are completed within a specified time frame. EDF(Earliest Deadline First) or RM (Rate Monotonic) |
|
1. Running 2. Not running |
Two-State Process Model Short-Term |
|
Context Switching |
is a mechanism to store and restore the state or context of a CPU in the Process Control Block. |
|
1. Job Queue 2. Ready queue 3. Device queue |
Process Scheduling Queues |
|
Job Queue |
this queue keeps all the processes in the system. |
|
Ready queue |
this queue keeps a set of all processes residing in main memory, read and waiting to execute. A new process is always put in this queue. |
|
Device queue |
the processes which are blocked due to unavailability of an I/O device constitute this queue |