Operating Systems Fundamentals Flashcards

1
Q

What is an Operating System (OS)?

A

An OS controls hardware and software, working between the user and the computer

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

What are the main objectives of an operating system?

A

Easy to use, works fast, and can improve over time.

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

What are the four key components of a computer system?

A

Hardware
Operating System
Application Programs
Users

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

What are the main stages in the evolution of operating systems?

A

Serial Processing: One job at a time, no OS help

Simple Batch Systems: Jobs run in batches, with little user interaction

Multiprogrammed Batch Systems: Several jobs in memory, CPU switches between them

Time-Sharing Systems: Many users share the system, each gets a short time to run

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

What is serial processing in operating systems?

A

Jobs run one after another, with no overlap

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

What is the primary feature of a batch processing system?

A

Jobs are grouped and run one after another, with a monitor guiding the order

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

What is multiprogramming in an OS?

A

Several programs stay in memory at once so the CPU is always busy

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

What is time-sharing in an operating system?

A

CPU time is shared between users, so it feels like everything runs at once

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

What is process management in an operating system?

A

Managing how processes start, run, and stop

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

What are the five states of a process in an OS?

A

New – Process is being created.

Ready – Process is waiting for CPU time.

Running – Process is being executed.

Waiting (Blocked) – Process is waiting for some resource, like I/O.

Terminated – Process has finished and is no longer running.

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

What is a Process Control Block (PCB)?

A

Stores process info like state, program counter, and memory details

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

What is context switching in an OS?

A

Saving the state of a running process and loading the state of another

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

What is the goal of CPU scheduling?

A

Choosing which processes to run to make the CPU and system work efficiently

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

Name three common CPU scheduling algorithms.

A

First Come, First Served (FCFS)
Shortest Job First (SJF)
Round Robin (RR)

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

What is the main drawback of FCFS scheduling?

A

It can lead to the convoy effect, where short tasks wait for long ones to finish

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

What is the advantage of SJF scheduling?

A

It reduces average wait time, but guessing the next CPU burst is hard

17
Q

What is the key feature of Round Robin scheduling?

A

Each process gets a set time to run, improving how quickly the system responds

18
Q

How does priority scheduling work?

A

Processes run based on priority, with higher-priority ones going first.

19
Q

What is a deadlock in an operating system?

A

A situation where processes are stuck waiting for each other to release resources

20
Q

How can deadlocks be prevented?

A

By making sure one of the key conditions for deadlock doesn’t happen

21
Q

What is the primary goal of memory management?

A

To manage and use the computer’s main memory efficiently

22
Q

What is paging in memory management?

A

Memory is split into fixed-size pages to reduce fragmentation.

23
Q

What is virtual memory?

A

Uses disk space to make it seem like there’s more memory than actually available.

24
Q

What is I/O management in an OS?

A

Controls devices and handles data transfer between them and the CPU

25
Q

What is the purpose of a device driver?

A

It connects the OS to hardware devices so they can work together

26
Q

What is Direct Memory Access (DMA)?

A

Moves data between devices and memory without using the CPU

27
Q

What is a system call?

A

When an app asks the OS to do something low-level, like accessing hardware

28
Q

What does file system management involve?

A

Stores and organizes files, keeps info about them, and controls who can access them

29
Q

What is bootstrapping in an OS?

A

Loading the OS into memory when the computer starts up

30
Q

What is the kernel in an OS?

A

The main part of the OS that controls system resources and helps hardware and software communicate

31
Q

Why use an API wrapper instead of direct system calls?

A

To make it easier to move and access system functions

32
Q

What are virtual machines (VMs)?

A

Software that acts like a hardware, allowing multiple OSes to run on one computer

33
Q

What are the two modes in dual-mode operation?

A

User Mode and Kernel Mode help protect the OS from harmful or buggy programs

34
Q

What is IPC?

A

Sharing data between different processes

35
Q

Why is process synchronization important?

A

Making sure processes using the same resources don’t conflict with each other