System Software P3 Flashcards

1
Q

What is the main purpose of an operating system?

A

Maximizing resource use and managing hardware/software efficiently

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

How does an OS manage memory?

A

By using static/dynamic partitioning

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

What is virtual memory?

A

Using secondary storage to simulate additional RAM

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

How is disk usage optimized by the OS?

A

By compressing files

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

What does the user interface in an OS do?

A

Hides hardware complexity and allows user interaction

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

What is multi-tasking in OS?

A

Managing multiple programs appearing to run simultaneously

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

What is the difference between a program and a process?

A

A program is written code; a process is the code being executed

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

Why is process scheduling important?

A

It ensures efficient CPU usage

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

What are the three common process states?

A

Ready

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

What does the ‘Ready’ state mean?

A

The process is waiting in the queue for CPU time

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

What does the ‘Running’ state mean?

A

The process is currently being executed

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

What does the ‘Blocked’ state mean?

A

The process is waiting for an event before continuing

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

What is the ‘Terminated’ state?

A

The process has finished execution and is removed from the queue

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

What is Shortest Job First scheduling?

A

Non-preemptive scheduling where shortest tasks are executed first

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

What is Round Robin scheduling?

A

Each process gets a fixed CPU time slice in turn

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

What is First Come First Served scheduling?

A

Processes are executed in the order they arrive

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

What is Shortest Remaining Time scheduling?

A

Preemptive scheduling based on shortest remaining execution time

18
Q

What happens when an interrupt occurs?

A

Current process is moved to Ready; interrupt is moved to Running

19
Q

What does the low-level scheduler do?

A

Chooses which ready process gets CPU based on priority

20
Q

What does the high-level scheduler do?

A

Decides which process loads from backing store into Ready state

21
Q

What is paging in memory management?

A

Dividing memory and processes into fixed-size blocks for swapping

22
Q

What is a page?

A

A block of virtual memory

23
Q

What is a page frame?

A

A block of main memory

24
Q

What is a page table?

A

Tracks the mapping of pages to frames

25
What is segmentation?
Dividing processes into segments of variable size
26
What is disk thrashing?
Constant swapping due to inter-dependent pages being needed quickly
27
What is an interpreter?
A tool that executes code line-by-line and checks for errors
28
What is a compiler?
A tool that translates entire code to object code before execution
29
What is lexical analysis?
Turning strings into tokens and removing comments
30
What is syntax analysis?
Generating a parse tree and detecting syntax errors
31
What is code generation?
Creating object code from parsed input
32
What is code optimization?
Improving code for faster execution
33
What is BNF notation?
A visual way of expressing programming language grammar
34
What symbol is used for enclosing items in BNF?
<>
35
What symbol separates items from definitions in BNF?
::=
36
What symbol indicates choices in BNF?
|
37
What symbol ends a rule in BNF?
;
38
What is Reverse Polish Notation (RPN)?
A way to write expressions without brackets or precedence
39
Why is RPN advantageous?
No brackets needed
40
How is RPN used with a stack?
Values are pushed; operators pop and compute using last two values