OS Flashcards

(50 cards)

1
Q

What is an Operating System?

A

Software that manages hardware and runs programs

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

Main goal of OS

A

Efficient resource management

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

Kernel

A

Core part of operating system

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

User mode

A

Restricted execution mode

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

Kernel mode

A

Full hardware access mode

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

Process

A

Program in execution

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

Thread

A

Smallest execution unit inside process

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

Process vs Thread

A

Process heavy thread lightweight

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

PCB

A

Process Control Block

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

PCB stores

A

PID state registers memory info

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

Context switching

A

CPU switching between processes

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

Scheduler

A

Selects next process

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

Long-term scheduler

A

Admits jobs to memory

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

Short-term scheduler

A

Chooses next CPU process

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

Dispatcher

A

Gives CPU to selected process

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

Ready state

A

Waiting for CPU

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

Running state

A

Executing on CPU

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

Blocked state

A

Waiting for I/O

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

CPU scheduling

A

Selecting next process

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

FCFS

A

First come first served

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

FCFS problem

A

Convoy effect

22
Q

SJF

A

Shortest job first

23
Q

SJF advantage

A

Minimum waiting time

24
Q

Priority scheduling

A

Higher priority first

25
Starvation
Low priority process never runs
26
Aging
Increase priority over time
27
Round Robin
Time slice scheduling
28
Time quantum
Fixed CPU time slice
29
Too small quantum
Many context switches
30
Too large quantum
Acts like FCFS
31
Turnaround time
Completion time minus arrival time
32
Waiting time
Turnaround time minus burst time
33
Deadlock
Processes waiting forever
34
Deadlock condition mutual exclusion
Only one process can use resource
35
Deadlock condition hold and wait
Holding resource while waiting
36
Deadlock condition no preemption
Resource cannot be forcibly taken
37
Deadlock condition circular wait
Processes wait in cycle
38
Deadlock prevention
Break one condition
39
Deadlock avoidance
Allocate safely
40
Banker’s algorithm
Deadlock avoidance method
41
Safe state
System can avoid deadlock
42
Paging
Memory divided into fixed blocks
43
Page
Logical block
44
Frame
Physical memory block
45
Page fault
Page not in RAM
46
Virtual memory
Disk used as extra memory
47
FIFO page replacement
Oldest page removed
48
LRU page replacement
Least recently used removed
49
Thrashing
Excessive page faults
50
File system
Organized storage of files