Lecture 5 Flashcards

1
Q

What does a multiprogrammed OS signify?

A

That the OS can accommodate multiple programs being loaded into Main Memory

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

What is throughput?

A

The number of jobs that can be completed in a unit of time

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

What is mean response time?

A

The average time after which a process gives an output

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

What are context switches?

A

The time taken to check, change or move to another process

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

What is a Gantt Chart used for?

A

To visually represent the order in which processes are executed by the CPU

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

WHat is turn around time (TAT)

A

Total amount of time spent by a process inside the computer Finish time – Arrival time = TAT

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

Is the OS a process?

A

Yes

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

What are the two main elements of a process

A

Program code and context data.

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

What is a process control block (PCB)?

A

A data structure to store information about processes

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

What are the 8 main attributes of the PCB?

A

Process ID, State, Priority, PC, Context Data, Memory Pointers, I/O status info, Accounting info,

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

What does the Process ID PCB attribute hold?

A

A unique identifier for the process

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

What does the State PCB attribute hold?

A

What the process is doing (Running on CPU or not)

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

What does the Priority PCB attribute hold?

A

An assigned priority for the process

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

What does the Program Counter (PC) PCB attribute hold?

A

The address of the next instruction of this process

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

What does the Context Data PCB attribute hold?

A

Data Previously calculated or data the process is working on.

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

What does the memory pointers PCB attribute hold?

A

References to memory locations used by the process

17
Q

What does the I/O status Information PCB attribute hold?

A

What I/O the process uses and what the I/O does/is doing

18
Q

What does the Accounting information PCB attribute hold?

A

General information about the process. BUS time, arrival time, size

19
Q

What are some of the reasons for process creation?

A

-opening an application
-system level services (created by kernel)
-system log in =init= forks background processes
-parent creates child process “forks”

20
Q

What are some of the reasons for terminating a process?

A
  • Closing an application
    • System log out
    • Errors
    • Normal completion
    • Starvation
    • Parent kills child
    • Main memory unavailable
    • I/O failure
      • Time overrun