U1) OS Introduction Flashcards

(20 cards)

1
Q

What is an Operating System (OS)?

A

A system software that manages hardware and software resources and acts as an interface between user and computer.

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

Name any 3 types of Operating Systems.

A

Batch OS, Time-sharing OS, Distributed OS, Real-time OS.

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

Mention 3 services provided by an OS.

A

Program execution, I/O operations, File system manipulation.

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

What is the structure of a Monolithic OS?

A

All services are combined in one large kernel.

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

What is a Process?

A

A running instance of a program.

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

What does a Process Control Block (PCB) contain?

A

Information like process ID, state, registers, and program counter.

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

Name the process states.

A

New, Ready, Running, Waiting, Terminated.

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

What are the three multithreading models?

A

Many-to-One, One-to-One, Many-to-Many.

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

What is the purpose of process scheduling?

A

To decide the order of process execution for efficient CPU use.

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

Name any 3 CPU scheduling algorithms.

A

FCFS, SJF, Round Robin.

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

What is a Critical Section?

A

A part of the code where shared resources are accessed.

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

What are semaphores used for?

A

Controlling access to shared resources in concurrent processing.

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

What is Peterson’s solution?

A

A software-based solution for 2-process mutual exclusion.

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

Give an example of an IPC problem.

A

Producer-Consumer problem.

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

What is a Monitor?

A

High-level abstraction to manage process synchronization.

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

Define Atomic Transaction.

A

A group of operations that execute completely or not at all.

17
Q

List 4 conditions for deadlock.

A

Mutual Exclusion, Hold and Wait, No Preemption, Circular Wait.

18
Q

What is Banker’s Algorithm used for?

A

To avoid deadlock by checking if the system is in a safe state.

19
Q

What is Deadlock Detection?

A

Identifying cycles in resource allocation graph to detect deadlocks.

20
Q

Name two methods of Deadlock Recovery.

A

Process termination, Resource preemption.