Week 2 Flashcards
What is Pseudo Parallelism?
The illusion that the computer is multitasking
What is Multiprocessor?
When the CPU is dividing its resources to work on different tasks
What is the difference between program and process?
The program is like the recipe
The process is like the cook
What is multiprogramming?
When the CPU switches between processes
CPU Utilization
1 - p^n
p is processor
n is number of processes
Kernel
One of two core components of OSs(with the file system)
File Management System
one of three core components of OSs (with the kernel and I/O Component). All data in a computer is stored in the form of a file, and the OS helps maintain the file sizes, names, locations, directory structures, and file access rights
CPU
the Computer Processing Unit. Circuitry to execute program instructions
CPU Cycle
the cycle performed by the CPU to read a program instruction, execute it, and repeat
User Mode
applications in user mode can only run instructions that affect its own application. Executing functions in the application’s code
Kernel Mode
allows privileged machine instructions to run. This mode is entered by flipping a bit on the CPU
Privileged Machine Instructions
have global effects on your whole computer and external devices. Examples include (1) writing data to disks and (2) running the logic that makes one application stop running, and instead start running another application
Process
a program in execution. Because there are limited CPU cycles and the OS needs to perform many tasks, the process concept allows OSs to switch between executing different tasks.
Process Content
the snapshotted state of a process, which includes its data, memory utilization, and execution progress. The process context must be saved when the OS wants to stop running a process, and it gets reloaded when the OS resumes running the process.
Process Management
a function of the OS kernel that manages applications using an abstraction called a process
Address Space
The memory organization model for processes. Each process has its own address space of five segments, including (1) Code, (2) Data, (3) Heap, (4) Stack, and (5) Kernel space.
Code
A segment of the process address space that is, by convention, stored in the memory locations specified by the lowest addresses. Consists of the instructions being executed for the process
Program Counter
Register value stored in the CPU. It points to the address of the next instruction to execute in the Code segment.
Data
a segment of the process address space that, by convention, is stored in the memory locations just above the Code segment. Stores statically-defined variables.