Competitive Freshness Algorithms for Wait free Objects Wait-free Objects
Peter Damaschke, Phuong Ha & Philippas Tsigas
Presentation at the Euro-Par 2006
29th Aug. – 1st Sept. 2006, Dresden, Germany.
Competitive Freshness Algorithms for Wait free Objects Wait-free - - PowerPoint PPT Presentation
Competitive Freshness Algorithms for Wait free Objects Wait-free Objects Peter Damaschke, Phuong Ha & Philippas Tsigas Presentation at the Euro-Par 2006 29 th Aug. 1 st Sept. 2006, Dresden, Germany. Introduction Wait-free data objects
Peter Damaschke, Phuong Ha & Philippas Tsigas
Presentation at the Euro-Par 2006
29th Aug. – 1st Sept. 2006, Dresden, Germany.
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
– every operation is guaranteed to finish in a limited number of steps
EuroPar'06 2
steps. ⇒ Suitable for real-time systems
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
W(0) A W(1) B R(0 or 1) C ( ) w3 sensor3 e3 sensor2 sensor1 w1 w2 e1 e2
3
r e0+d CPU0 s0 e0+D e0 r0
EuroPar'06 3
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
EuroPar'06 4
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
EuroPar'06 5
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
EuroPar'06 6
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
d d
d d =
− |
1
sensor3 w3 e
d ≤
d ≤
sensor2 sensor1 w1 w2 e1 e2 e3 d: delay, 1 ≤ d ≤ D+1 |e |: # fresh values
EuroPar'06 7
CPU0 s0 e1 e0-1+d e0+D e0 |ed|: # fresh values M: # concurrent writes at e0
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
freshness (log) lnD
M f D M
d
ln ln ln ln ≤ ≤ − D fd ln ln ≤ ≤
Conclusions
d D f d e
d d
ln ln ln ln ln
1
− ≤ ≤ −
−
X
vs.
time (log) time (log) lnD
EuroPar'06 8
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
D M fd ≥
Algorithm: The read accepts the first
f f
Analysis:
Conclusions
f lnD
D M f c
T
/
1 ≈
f lnD
T
f M c ≈
2
f2 x fT fT - ε f1 x fT p x p2 lnD t lnD t p1 x
EuroPar'06 9
D c c = = ⇒
2 1
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
f lnD
ln D
f2 f1
2
p1
lnD t p2X
EuroPar'06 10
p2
D
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
f lnD
h g
c a
lnD t1 t
EuroPar'06 11
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
∞ →
D
EuroPar'06 12
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
EuroPar'06 13
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
lf lnD
– exchanging some fraction of money ≈ stopping the search with
f g
money ≈ stopping the search with that probability
c
– distributed money on axis lf – T(x): density of exchanged money ⇒ player’s profit = ∫ (x.T(x))
lnD t
EuroPar'06 15
p y p ( ( ))
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
Conclusions
lf lnD
f g
c a
lnD t
EuroPar'06 16
L t f (fi l l )
Introduction Modeling the problem Deterministic algorithm Randomized algorithm Concl sions
– T=2 on [c,f] or c=f – ∑ (gaps with T=0) ≤ r f f
Conclusions
∑ (gaps with T=0) ≤ r
x x T=2
⎟ ⎟ ⎞ ⎜ ⎜ ⎛ + + ≥
+ − − − 2 / ) ln (
2 2 min .
D r t t x t
dt e re dt e f
worst T=0 x+r r
⎟ ⎠ ⎜ ⎝
+ , r x x r
f ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ − + > D f 2 2 ln 1
ti
T=2 x r
⎠ ⎝ D D ln
⇒ comp. ratio
2 ln D r +
D D c / 2 2 ln 1 ln − + =
EuroPar'06 17
(cf. TR-CS-2005:17)