Elimination Array, Elimination backOff Array Flashcards
What does Elimination mean?
Cancelling out concurrent pairs of pop + push calls
What is the idea of elimination?
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
threads cannot be eliminated for 2 reasons
Failed to find partner
picked a partner of wrong type
can either try again to eliminate at a new location or access the stack
What is the EliminationBackoffStack
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