Elimination Array, Elimination backOff Array Flashcards

1
Q

What does Elimination mean?

A

Cancelling out concurrent pairs of pop + push calls

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

What is the idea of elimination?

A

Threads eliminate one another through EliminationArray
Pick random array entries to try to meet complementary calls
pair’s pop + push method calls that pick the same location exchange values + returns

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

threads cannot be eliminated for 2 reasons

A

Failed to find partner
picked a partner of wrong type
can either try again to eliminate at a new location or access the stack

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

What is the EliminationBackoffStack

A

EliminationArray used as a backoff scheme
thread 1st access the Stack
if compareAndSet fails it attempts to eliminate its call using the array instead of simply backing of
if fails to eliminate access the Stack again and so on

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