Operating Systems Flashcards

1
Q

Whats a operating system

A

Program that acts as an interface between the computer user and computer hardware, and controls the execution of programs

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

WHat 3 parts does the OS manage

A

Memory
Processing
Hardware/Software on computer

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

What are some responsibility of OS

A

file management, memory management, I/O handling, and peripheral device management

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

What is process management

A

The OS handles one process at a time but is so fast it may seem like its concurrent

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

Virtual memory serves 3 purposes…what are they

A

assure that each process has a unique address space

provide memory protection to prevent processes from using memory addresses

allow an application to use more memory than what is physically available

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

Purpose of I/O management

A

Allows us to easily add additional hardware and configure it

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

Whats the purpose of the secondary storage

A

For program to run data and its accesses the data must be in primary memory. The secondary is used to back up the main memory

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

What is process management

A

Involves various tasks like creation, scheduling, termination of processes, and a dead lock.

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

What must the OS do for process management

A

it must allocate resources that enable processes to share and exchange info. Also protects it from other methods that allow sync among processes

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

What are the 4 architecture blocks of Process

A

Stack
Heap
Data
Text

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

What is stack?

A

stores temporary data like function parameters, return addresses, and local variables

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

Heap

A

allocates memory, which may be processed during run time

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

data

A

contains a varaible

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

text

A

includes current activity

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

What is the PCB and what does it do

A

Process Control Block

  • Data structure that is maintained by the OS for every process
  • Helps you store all the info required to keep track of all running process
  • store contents of processor registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Whats a process state

A

COndition of the process at a specific instant of time (defines current position of the process)

17
Q

List the 7 stages of a process

A

New -> Ready -> Waiting -> Executing -> Terminated

Executing -> blocked
executing -> suspended

18
Q

Stage: New

A

The new process is created when a program calls from secondary memory to primary memory

19
Q

Ready

A

Process should be loaded into the primary memory, which is ready for execution

20
Q

Waiting

A

Process is waiting for the allocation of CPU time and other resources for execution

21
Q

Executing

A

The process is an execution state

22
Q

Blocked

A

Time interval when a process is waiting for an event like I/O operation to complete

23
Q

Suspended

A

Tiem when a process is ready for execution but has not been placed in the ready queue by OS

24
Q

Terminated

A

Time process is terminated

25
Q

Important components of PCB

A
Process state
program counter
cpu registers
cpu scheduling info
accounting/business info
memory-management info
i/o status info
26
Q

process state

A

Process can be new, ready, running, waiting, etc

27
Q

Program counter

A

Lets you know the address of the next instruction, which should be executed for that process

28
Q

CPU registers

A

component includes accumulators, index, and General-purpose registers and info of condition code

29
Q

CPU Scheduling info

A

Includes a process priority, pointers for scheduling queues, and various other scheduling parameters

30
Q

Accounting/business info

A

includes the amount of CPU and time utilities like real time used, job or process numbers