OSStructuresAndProcesses Flashcards

1
Q

What is the purpose of an Operating System?

A

To manage hardware resources and provide an environment for application execution.

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

List three major OS services.

A

Program execution, I/O operations, and file system management.

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

What is a system call?

A

An interface between a running program and the operating system.

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

What is the difference between user mode and kernel mode?

A

User mode limits access to hardware, kernel mode allows full control over the hardware.

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

What is a process?

A

A program in execution that includes program counter, registers, and variables.

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

What are the five states of a process?

A

New, Ready, Running, Waiting, Terminated.

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

What information does a Process Control Block (PCB) contain?

A

Process state, program counter, CPU registers, scheduling information, memory management info, I/O status.

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

What is context switching?

A

Saving the state of one process and loading the state of another.

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

Difference between program and process?

A

Program is passive (on disk), process is active (in memory and executing).

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

What is the role of the short-term scheduler?

A

Selects which process should execute next on the CPU.

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