Operating Systems Flashcards

1
Q

What is Bootstrapping?

A

The process of loading the initial instructions into the computer to start the OS

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

What does BIOS do during the start-up process?

A

Performs POST to check hardware
Initializes memory and hardware components
Provides low-level routines for hardware interfacing
Locates and loads the bootloader from a bootable device

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

What is the role of a OS?

A

Interfaces between hardware and software
Manages system resources
Ensures fair access to CPU and hardware for multiple programs
Handles user inputs and outputs

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

True or False: A process is the running instance of a program which includes its code, memory and resources

A

True

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

What is the purpose of I/O buffering?

A

To handle speed and size mismatches between devices and the CPU while maintaining data integrity

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

What are the three types of buffering?

A

Single buffering, Double buffering and then Circular buffering

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

How does the OS interact with I/O devices

A

Using device drivers

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

What happens when an interrupt is triggered?

A

Save program counter and processor state
Execute the interrupt handler
Transfer data
Clear the interrupt
Resume the interrupted process

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

What is the main role of memory management in an OS?

A

Handles relocation, allocation, protection, sharing, logical organization and physical organization of memory

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

List the three types of Address Binding in Memory Management

A

Compile-time, load-time and run-time

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

What does the Memory Management Unit (MMU) do?

A

The MMU maps logical memory addresses to physical memory addresses with the relocation register holding the base address of a process

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

List the three common dynamic partitioning algorithms and their main issue

A

First fit
Best fit
Worst fit
They all suffer from fragmentation

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

Define a ‘page fault’

A

A page fault is an exception raised when a process cannot map to a memory page

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

List 3 advantages of Virtual Memory

A

Efficiency, convenience and portability

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

What is the stack used for in memory management?

A

The stack is faster, Last-in-First-Out (LIFO) structure for temporary data created by the OS

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

What is the heap used for in memory management?

A

The heap is a slower, dynamic structure managed by the OS, allowing random access

17
Q

What is a file?

A

A file is a basic unit of non-volatile storage containing metadata and data, organized by a file system

18
Q

What does a hierarchical file system consist of?

A

Directories and files

19
Q

True or False, Linux is a clone of UNIX?

A

True

20
Q

Name one pro and con of Linux?

A

Pro:
Open Source
Secure
Portable
Typically fast or faster

Con:
Steep Learning Curve
Some hardware is not supported

21
Q

List the 4 approaches to Directory Namespace?

A

1 - Single Level

#2 - Two Level
#3 - Hierarchy
#4 - Directed acyclic graph