full_flashcards

(104 cards)

1
Q

Memory management

A

OS responsibility for allocating, relocating, protecting and deallocating memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Paging

A

Memory divided into fixed-size pages and frames.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Page fault

A

Happens when a page is not in main memory and must be fetched from disk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

MMT

A

Memory Map Table; converts virtual addresses to physical addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Thrashing

A

System constantly swaps pages instead of executing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Bit map

A

Tracks free/used blocks using bits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Linked list allocation

A

Keeps a list of memory blocks (holes/processes).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

First Fit

A

Uses first hole that is large enough.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Next Fit

A

Continues scan from last allocation point.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Best Fit

A

Uses smallest hole that fits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Worst Fit

A

Allocates from largest hole.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Quick Fit

A

Keeps separate lists of common block sizes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

External fragmentation

A

Wasted space between allocated blocks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Internal fragmentation

A

Unused space inside allocated block.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Compaction

A

Shifts processes to remove fragmentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Swapping

A

Moving processes between RAM and disk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Buddy system

A

Allocates blocks in powers of two.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Buddy splitting

A

Repeatedly split blocks until size fits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Buddy merging

A

Only buddies of equal size can combine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Segmentation

A

Process split into logical chunks (code, data, stack).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Paged virtual memory

A

Logical memory divided into pages mapped to frames.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Advantages of paging

A

No external fragmentation, supports large processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Disadvantages of paging

A

Overhead, thrashing possible.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

FIFO paging

A

Oldest page replaced first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
LRU paging
Least recently used page removed.
26
NFU paging
Page with lowest reference count removed.
27
Program
A static file on disk.
28
Process
Running instance of a program.
29
PID
Unique process identifier.
30
Process creation
OS builds PCB and loads process into memory.
31
Process state
Current condition of process (ready, running, etc.).
32
New state
Process is being created.
33
Ready state
Waiting for CPU.
34
Running state
Currently executing.
35
Blocked state
Waiting for I/O.
36
Terminated state
Execution complete.
37
PCB
Process Control Block.
38
PCB contents
Registers, program counter, memory info, files, state.
39
Context switch
Save one PCB, load another.
40
Virtual CPU
Each process appears to run independently.
41
Pre-emptive OS
Can interrupt process via clock interrupt.
42
Non-preemptive OS
Process must yield CPU voluntarily.
43
Concurrency
Multiple processes appear to execute.
44
True concurrency
Multiple CPUs execute at same time.
45
Apparent concurrency
Fast switching on one CPU.
46
Event-driven OS
Triggered by interrupts.
47
Interrupt
Signal to OS that event occurred.
48
Kernel mode
Full privileges.
49
User mode
Restricted access.
50
Privileged instructions
Allowed only in kernel mode.
51
Resources
CPU, memory, I/O devices.
52
Deadlock risk
Competing for resources.
53
Scheduler
Chooses which process runs next.
54
Long-term scheduler
Admits jobs to system.
55
Medium-term scheduler
Manages swapping.
56
Short-term scheduler
Dispatches CPU.
57
Dispatcher
Hands CPU to selected process.
58
Dispatch latency
Time to switch processes.
59
CPU utilization
How busy the processor is.
60
Throughput
Jobs completed per time unit.
61
Turnaround time
Arrival to completion.
62
Waiting time
Time spent in ready queue.
63
Response time
Submission to first output.
64
FCFS
Runs in arrival order, if a process arrives but another is running it waits
65
RR
Will alternate between all current arrived processes each quantum
66
Quantum
Max time slice in Round Robin between 1/60 and 1 second
67
SPN
Proceess starts with the first one (a) then the shortest proceess arrived
68
PSPN
Shortest remaining time.
69
HRRN
Selects biggest (w+s)/s.
70
MLFQ
Multiple priority queues.
71
Feedback queue behaviour
CPU hogs move down priority.
72
Starvation
Process never gets CPU.
73
Fairness
Ensuring equal scheduling chance.
74
Convoy effect
Short jobs wait for long ones.
75
Aging
Increase priority to avoid starvation.
76
Response time formula
Finish time − arrival time.
77
Waiting time formula
Response time − service time.
78
Penalty ratio formula
Response time / service time.
79
Response ratio formula
Service time / response time.
80
gcc
Compiler for C programs.
81
make
Build automation tool.
82
malloc
Allocates heap memory.
83
free
Releases heap memory.
84
sizeof
Returns size of data type.
85
& operator
Returns variable address.
86
* operator
Dereferences pointer.
87
fork()
Creates a child process.
88
exec()
Replaces process image.
89
exit()
Terminates process.
90
wait()
Parent waits for child.
91
ls
List directory contents.
92
pwd
Print working directory.
93
mkdir
Create directory.
94
rmdir
Delete empty directory.
95
cp
Copy files.
96
mv
Move/rename files.
97
rm
Delete files.
98
chmod
Change permissions.
99
chown
Change file owner.
100
ps
Show running processes.
101
top
Live process monitor.
102
kill
Terminate process.
103
man
Show manual pages.
104
grep
Search text.