CMPS 431 (OS) Flashcards

1
Q

Draw the 5 state diagram

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

Draw the storage hierarchy.

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

How do you calculate Average Time to Completion?

What is the Average Time to Completion for the example in the image provided?

A

(Sum of the time that the processes completed) / number of processes

Example from image

(24 + 27 + 30) / 3 = 27

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

How do you calculate Average Wait Time?

What is the Average Wait Time for the example in the image provided?

A

(Sum of initial entries into run queue) / Number of Processes

Example from the image provided

(0 + 24 + 27) / 3 = 17

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

What does the MS-DOS execution diagram look like at System Startup?
What about when it is running a program?

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

Draw the diagram for a UNIX System running multiple processes.

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

Which scheduling algorithm has the best response time, and why?

(not including round robin)

A

Shortest job first Preemptive.

Because it reevaluates to shortest job upon a new jobs arrival.

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

Multi Programmed batch

A

The computer executes jobs from a pool of jobs that have been loaded into memory

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

What is timesharing

A

Mainframe computers used time sharing to give users, located at remote terminals, the illusion that each other had the computer to themselves

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

Occurs when a process enters a waiting state because a resource requested is being held by another waiting process, which in turn is waiting for another resource held by another waiting process

A

Deadlock

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

How do you prevent Deadlock from happening?

A

Deadlock Prevention: Use of a protocol to ensure that system never enters a deadlock state. This method tries to ensure that at least one of the conditions for deadlock cannot occur by constraining how resources requests are made. (There are different strategies. This is a general explanation.)

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