/
Wait-Free Computability for General Tasks Wait-Free Computability for General Tasks

Wait-Free Computability for General Tasks - PowerPoint Presentation

thousandnike
thousandnike . @thousandnike
Follow
342 views
Uploaded On 2020-06-22

Wait-Free Computability for General Tasks - PPT Presentation

TexPoint fonts used in EMF Read the TexPoint manual before you delete this box A A A A Companion slides for Distributed Computing Through Combinatorial Topology Maurice Herlihy ID: 783569

map mar div protocol mar map protocol div simplicial theorem color colored tasks star preserving open wait free carried

Share:

Link:

Embed:

Download Presentation from below link

Download The PPT/PDF document "Wait-Free Computability for General Task..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Wait-Free Computability for General Tasks

TexPoint

fonts used in EMF.

Read the

TexPoint manual before you delete this box.: AAAA

Companion slides

forDistributed ComputingThrough Combinatorial TopologyMaurice Herlihy & Dmitry Kozlov & Sergio Rajsbaum

1

Slide2

Road Map

Inherently colored tasks

Protocol

)

mapSolvability for colored tasks

Map

) protocolA Sufficient Topological Conditions

Slide3

Star

Distributed Computing through Combinatorial Topology

3

Star(

¾

,

K

)

is the complex of facets of

K

containing

¾

Complex

¾

Review

Slide4

Facet

Distributed Computing through Combinatorial Topology

4

A

facet

is a simplex of maximal dimension

Review

Facet

not a

facet

Slide5

Open Star

Distributed Computing through Combinatorial Topology

5

Star

o

(

¾

,

K

)

union of interiors of simplexes containing

¾

Point Set

Review

Slide6

Link

Distributed Computing through Combinatorial Topology

6

Link(

¾

,

K

)

is the complex of simplices of

Star(

¾

,

K

)

not containing

¾

Complex

Review

Slide7

11-Mar-15

7

Review

A simplicial map

Á is rigid

ifdim

Á(¾) = dim ¾.

Slide8

Road Map

Inherently colored tasks

Protocol

)

map

Solvability for colored tasks

Map ) protocolA Sufficient Topological Conditions

Slide9

I

O

The Hourglass task

Slide10

P

Q

R

Q,0

R,0

P,0

¢

Single-Process Executions

I

O

Slide11

P

R

R

P

¢

P and R only

(P and Q Symmetric)

I

O

Slide12

¢

Q and R only

I

O

Slide13

11-Mar-15

13

Claim:

Hourglass satisfies conditions of fundamental theorem …

But has no wait-free immediate snapshot protocol!

Slide14

But has no wait-free immediate snapshot protocol!

11-Mar-15

14

Claim:

Hourglass satisfies conditions of fundamental theorem …

Slide15

I

O

homotopy

:

|

I

|

|

O

|

carried by

¢

Slide16

11-Mar-15

16

Claim:

Hourglass satisfies conditions of fundamental theorem …

But has no wait-free immediate snapshot protocol!

Slide17

11-Mar-15

17

Claim:

The Hourglass task solves 2-set agreement …

Which has no wait-free read-write protocol.

Slide18

11-Mar-15

18

Protocol:

Write input value to

announce array …

Run Hourglass task …

Slide19

P,1

P

Look in

announce

[] array …

P

P

R

Q

R

Q

R or Q

Find non-null

announce

[] value

Slide20

Theorem

What Went Wrong?

11-Mar-15

20

A colorless (I

,O,

¢) has a wait-free immediate snapshot protocol iff there is a continuous map …f: |

I

|

|

O

|...

carried by

¢

Slide21

Theorem

One Direction is OK

11-Mar-15

21

If (I

,O,

¢) has a wait-free read-write protocol …f: |I|

|

O

|...

carried by

¢

then there is a continuous map …

Slide22

Theorem?

The Other Direction Fails

11-Mar-15

22

then does (I

,O,

¢) have a wait-free IS protocol?f: |I|

|

O

|...

carried by

¢

If there is a continuous map …

Slide23

Review

11-Mar-1523

Á

:

BaryN I

 O

f: |I|  |O

|...

Protocol

Simplicial approximation

Repeated snapshot

Slide24

Review

11-Mar-1524

Á

:

BaryN I

 O

f: |I|  |O

|...

Protocol

Simplicial approximation

Repeated snapshot

Not color-preserving

Another process’s output?

Slide25

Road Map

Inherently colored tasks

Protocol

)

map

Solvability for colored tasks

Map ) protocolA Sufficient Topological Conditions

Slide26

Theorem

11-Mar-15

26

A colorless

(I,

O,¢

) has a wait-free immediate snapshot protocol iff there is a continuous map …f: |I

|

|

O

|...

carried by

¢

How can we adapt this theorem to colored tasks?

Slide27

Theorem

Fundamental Theorem for Colored Tasks

11-Mar-15

27

(I

,O,¢

) has a wait-free read-write protocol iff …carried by ¢

I

has a

chromatic

subdivision

Div

I

&

color-preserving

simplicial map

Á

: Div

I

O

Slide28

P,0

Q,0

P,1

Q,1

P,0

Q,0

P,1

Q,1

I

O

¢

Quasi-Consensus

Slide29

P,0

Q,0

P,1

Q,1

P,0

Q,0

P,1

Q,1

I

O

¢

Quasi-Consensus

Slide30

P,0

Q,0

P,1

Q,1

P,0

Q,0

P,1

Q,1

¢

Quasi-Consensus

I

O

Slide31

P,0

Q,0

P,1

Q,1

P,0

Q,0

P,1

Q,1

¢

Quasi-Consensus

I

O

Not a colorless task!

Slide32

P,0

Q,0

P,1

Q,1

P,0

Q,0

P,1

Q,1

¢

Quasi-Consensus

I

O

Slide33

P,0

Q,0

P,1

Q,1

P,0

Q,0

P,1

Q,1

¢

Quasi-Consensus

I

O

No simplicial map:

I

O

carried by

¢

Slide34

P,0

Q,0

P,1

Q,1

P,0

Q,0

P,1

Q,1

Div

I

Á

O

Slide35

11-Mar-15

35

// code for P

T decide(T input) {

announce[P] = input; if (input == 1)

return 1;

else if (announce[Q] != 1) return 0 else

return

1

}

// code for Q

T decide(T input) {

announce[P] = input;

if

(input == 0)

return

0;

else if

(announce[P] != 0)

return

1

else

return 0

}Code is asymmetric!

Slide36

Road Map

Inherently colored tasks

Protocol

)

mapSolvability for colored tasks

Map

) protocolA Sufficient Topological Conditions

Slide37

Protocol ) Map

11-Mar-15

37

protocol

I¥(

I)

δ

input

complex

protocol

complex

output

complex

decision

map

carried by

¢

Slide38

Protocol ) Map

11-Mar-15

38

¥(

I)O

δ

subdivisionof inputcomplex

carried by

¢

Slide39

Road Map

Inherently colored tasks

Protocol

)

map

Solvability for colored tasks

Map ) protocolA Sufficient Topological Conditions

Slide40

11-Mar-15

40

Task

(

I,O,¢)

I

O

¢

(

¾

)

¾

Slide41

11-Mar-15

41

chromatic simplex

¾

chromatic subdivision

Div

¾

Slide42

11-Mar-15

42

I

O

¢

(

¾

)

¾

Slide43

11-Mar-15

43

I

O

¢

(

¾

)

¾

Theorem says …

If there is a chromatic subdivision …

Slide44

11-Mar-15

44

I

O

¢

(

¾

)

¾

Ã

Theorem says …

If there is a chromatic subdivision …

and a simplicial map

Ã

carried by

¢

Slide45

11-Mar-15

45

I

O

¢

(

¾

)

¾

Ã

… then there is a wait-free IS protocol!

Theorem says …

If there is a chromatic subdivision …

and a simplicial map

Ã

carried by

¢

Slide46

11-Mar-15

46

Let’s start with something easier …

Slide47

11-Mar-15

47

11-Mar-15

47

I

O

¢

(

¾

)

Ch

N

¾

Ã

Let’s start with a special case …

If there is a simplicial map

Ã

:

Ch

N

¾

¢

(

¾

)

Slide48

11-Mar-15

48

11-Mar-15

48

I

O

¢

(

¾

)

Á

Let’s start with something easier …

If there is a simplicial map

Á

:

Ch

N

¾

¢

(

¾

)

… then there is a wait-free IS protocol!

Ch

N

¾

Slide49

49

11-Mar-15

Protocol

Iterated immediate snapshot

Slide50

11-Mar-15

50

11-Mar-15

50

Á

For any chromatic subdivision

Div

¾

If there is a color and carrier-preserving simplicial map

Á

:

Ch

N

¾

Div

¾

Ch

N

¾

Div

¾

Slide51

Geometric construction

11-Mar-15

51

Inductively divide boundary

Slide52

Geometric construction

11-Mar-15

52

Displace

vetexes

from

barycenter

Slide53

Geometric construction

11-Mar-15

53

Slide54

Geometric construction

11-Mar-15

54

Mesh(Ch

¾

)

is max diameter of a simplex

Slide55

Subdivision shrinks mesh

11-Mar-15

55

mesh(Ch

¾

)

·

c mesh(

¾

)

for some

0 < c < 1

Slide56

Open cover

11-Mar-15

56

Slide57

Lesbesgue

Number

11-Mar-15

57

¸

Slide58

Open stars form an open cover for a complex

11-Mar-15

58

ostar

(

v

)

Slide59

Intersection Lemma

11-Mar-15

59

Vertexes lie on a common simplex

iff

their open stars intersect

Slide60

11-Mar-15

60

Pick

N

large enough that each (closed) star of

Ch

N

¾

has diameter less than

¸

… each star of

Ch

N

¾

lies in a open star of

Div

¾

Slide61

11-Mar-15

61

Defines a vertex map ….

Á

Simplicial by intersection lemma.

Slide62

11-Mar-15

62

11-Mar-15

62

Á

We have just proved the Simplicial Approximation Theorem

There is a carrier-preserving simplicial map

Á

:

Ch

N

¾

Div

¾

Ch

N

¾

Div

¾

Not necessarily color-preserving!

Slide63

11-Mar-15

63

An open-star cover is

chromatic

if every simplex

¿

of

Ch

N

¾

is covered by open stars of

of

the same color.

Slide64

11-Mar-15

64

Then the simplicial map ….

Á

Is color preserving!

If the open-star cover is chromatic ….

Must show that covering can be made chromatic …

Slide65

Open Cover Fail

11-Mar-15

65

Two simplexes

conflict

If colors disjoint, but …

polyhedrons overlap.

cannot map to same color

Slide66

Open Cover Fail

11-Mar-15

66

An open-star cover is chromatic iff there are no conflicting simplexes.

We will show how to eliminate conflicting simplexes

Slide67

Carriers

11-Mar-1567

Slide68

Perturbation

11-Mar-15

68

Slide69

Room for perturbation

11-Mar-15

69

Star contains

²

ball in carrier around vertex

Slide70

Room for perturbation

11-Mar-15

70

Can perturb to any point within

²

ball in carrier and still have subdivision

Slide71

Open Cover Fail

11-Mar-15

71

¿

has

p

+1

colors

½

has

q

+1

colors

Slide72

11-Mar-15

72

Simplexes lie in

hyperplane

of dimension

p+q

(because they overlap)

Slide73

11-Mar-15

73

Some vertex has carrier of dimension

p+q

+1(because there are p+q+2

colors)

Slide74

11-Mar-15

74

Can perturb vertex within (

p+q

+1)-

dimension

²

ball …

Slide75

11-Mar-15

75

Can perturb vertex within (

p+q

+1)-

dimension

²

ball …

Out of the

hyperplane

Slide76

11-Mar-15

76

Repeat until star diameter <

Lebesgue

number:Construct Ch ChN-1

* ¾

Perturb to ChN* ¾

So open-star cover is chromatic

Construct color-preserving simplicial map

Slide77

11-Mar-15

77

11-Mar-15

77

Div

¾

¢

(

¾

)

Ã

Given

Slide78

11-Mar-15

78

11-Mar-15

78

Á

Ch

N

¾

Div

¾

¢

(

¾

)

Ã

Constructed

Given

Slide79

11-Mar-15

79

11-Mar-15

79

Á

Ch

N

¾

Div

¾

¢

(

¾

)

Ã

Iterated immediate snapshot here …

Yields protocol here!

Slide80

Road Map

Inherently colored tasks

Protocol

)

map

Solvability for colored tasks

Map ) protocolA Sufficient Topological Condition

Slide81

Link-Connected

11-Mar-1581

O

is

link-connected

if for

each

¿

2

O

,

link

(

¿

,

O

)

is

(

n

- 2 - dim

¿

)

-

connected.

Slide82

11-Mar-15

82

not link-connected

.

not a fan

Slide83

Theorem

11-Mar-1583

If, for all

¾

2 I, ¢

(¾)

is((dim ¾)-1)-connected, and

O

is link-connected

then

(

I

,

O

,

¢

)

has a wait-free IS protocol

Slide84

Proof Strategy

11-Mar-15

84

If, for all

¾ 2 I, ¢

(¾)

is((dim ¾)-1)-connected, and

O

is link-connected,

there exists subdivision

Div

& color-preserving simplicial map

¹

:

Div

I

!

O

carried by

¢

.

Slide85

Proof Strategy

11-Mar-15

85

If, for all

¾ 2 I

, ¢(

¾) is((dim ¾)-1)-connected, and

O

is link-connected,

there exists subdivision

Div

& color-preserving simplicial map

¹

:

Div

I

!

O

carried by

¢

.

so protocol exists

by colored theorem

Slide86

Lemma

11-Mar-1586

suppose we have a rigid simplicial map

that is color-preserving on

Div

 ¾

then Á is color-preserving on Div

¾

Á

:

Div

¾

O

rigid & color-preserving on boundary

means color-preserving everywhere

Slide87

Lemma

11-Mar-1587

If

O

is link-connected …where

Div skel

n-1 I = skeln-1 I

to a rigid simplicial map

can extend rigid simplicial map

Á

n-1

:

skel

n-1

I

O

Á

n

:

Div

I

O

Slide88

O

O

Á

Á’

I

div

I

collapses

does not

collapse

hinge

Induction Base:

n

= 1

Slide89

Á

O

I

Induction Step:

Á

does not collapse

(

n

-1)

-simplexes

Slide90

O

Div

I

Slide91

Div

I

O

Á’

exploit connected

link

does not

collapse

Slide92

Summary

11-Mar-1592

to construct a color-preserving simplicial map

Á

: Div

I

 Ocarried by ¢.

Inductively use …

link-connectivity of

O

connectivity of

¢

(

¾

)

protocol follows from main theorem

Slide93

93

         

This work is licensed under a

Creative Commons Attribution-Noncommercial 3.0 Unported License.