Chapter 1 Flashcards

1
Q

What does multiple threads make up?

A

Processes

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

What 2 methods are there for providing mutual exclusion?

A

Can and Flags

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

What is Mutual Exclusion?

A

Separate Threads from accessing CS at the same time

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

What is the liveness property

A

Something good will happen eventually

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

Why wont the Message-passing work?

A

Recipient might not be listening/there at all

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

Problem with Can Protocol

A

Cans cannot be reused so you will run out of memory

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

Problem with Flags (without locks)

A

If both raise their flags at the same time it could lead to deadlock

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

Is the flag protocol (with defer) Deadlock and Starvation free?

A

No. It is deadlock free but The one that is being deferred might never get a chance with the CS.

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

Is the flag protocol fair and does it use waiting?

A

Unfair + waiting

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

Does the Can method work for Producer/Consumer?

A

Yes

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

What is the bounded buffer problem?

A

2 processes share common fixed-size buffer. Dont add if full. Dont remove if empty

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

What is the problem with waiting?

A

If one is delayed everyone is delayed. delays are common & unpredictable

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

Does upgrading from uniprocessor to a n-way MP increase performance linearly?

A

No

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

Amdahls Law Equation:

A

s = 1/(1-p +(p/n))

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