Lesson 3: Deadlocks Flashcards

1
Q

What is a deadlock a danger to?

A

Concurrent Programming

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

What is a deadlock

A

A process waiting for a resource held by a second process that’s waiting for a resource held by the first

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

Only one process at a time can use a resource: _______?

A

Mutual Exclusion

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

What is Hold and Wait?

A

A process holding at least one resource is waiting to acquire additional resources held by other processes

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

What is it called when…
a resource can be released only voluntarily by the process holding it, after that process has completed its task

A

No Preemption

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

Reactions to deadlock

A

Ignore It
Detect and Recover
Avoid it
Prevent it

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

Ostrich Algorithm

A

Pretend there is no problem (UNIX and Windows)

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

Memory Partioning

A

Technique of memory management where the main memory is divided into various partion/blocks

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

External Frag vs Internal Frag

A

Ext - total memory space exists to satisfy request

Int - allocated memory may be slightly larger than requested

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

How to reduce external frag

A

Compaction

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

What is PTBR

A

Page Table Base Register

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

What is PTLR

A

Page Table Length Register

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