Coordination Flashcards

1
Q

What is the fundamental equation of modern coordination theories?

A

Concurrent/Distributed Programming = Computation + Coordination

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

What are the three components of a coordination model?

A

(E,M,L)

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

What are the three main categories of coordination models?

A

Tuple Space Model, Event-based Models, Multiagent Protocols

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

What is the basic principle of Linda’s generative communication?

A

Processes communicate through insertion or retrieval of data objects (Tuples) from shared Data Space

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

What are the five core Linda operations?

A

out(t) - insert tuple, in(at) - remove matching tuple, rd(at) - read matching tuple, inp(at) - test existence, eval(t) - add active tuple

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

What are the two rules for tuple matching in Linda?

A

1) Must have same number of fields 2) If template field is value, must match exactly; if template field is variable, tuple field must match type

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

Why is updating a tuple impossible in Linda?

A

You need to remove and re-insert it

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

What is the Masters and Workers Pattern in Linda?

A

Master divides work into tasks in global space, workers retrieve tasks and put results back, master gathers results

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

What are the four main benefits of Linda?

A

Good nondeterminism leading to adaptivity, structured naming, time uncoupling, space uncoupling

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

What are the main limitations of Linda?

A

Event handling challenges, minimal language features, implementation challenges, security concerns, limited coordination law programmability

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

What are the two extended Linda operations for event handling?

A

sub((at), Handler) - subscribes to tuple events, out((t), timeout) - creates temporary tuples

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

What are the two key requirements for distributed tuple space implementation?

A

Reachability (all matching tuples must be findable), Consistency (single instance extraction)

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

What is the main principle of Replicative Ins Strategy?

A

Process writes local copy of outs, processes broadcast ins and reads

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

What is the main principle of Replicative Outs Strategy?

A

Process broadcasts outs to every tuple space, processes perform ins and reads locally

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

How does Hash-based Strategy work in tuple space implementation?

A

Defines function H that maps tuple to one of N nodes, ensures matching tuples/templates map to same node

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

What are the four main benefits of Local Multiple Tuple Spaces?

A

Separation of Concerns, Encapsulation, Security, Localized Interactions

17
Q

What is the Matrix Partitionative Strategy for tuple spaces?

A

Nodes arranged in virtual matrix, ins/read on column of local node, outs on row of local node

18
Q

What example is given for local vs global services in a smart hotel?

A

Local: meeting room and guest room services; Global: coordination of processes at global level

19
Q

What are the six properties a good coordination language must support?

A

Separation between computation and coordination, Support for autonomous components, Distribution and transparency, Decentralization, Dynamics and Adaptivity, Interoperability and Openness

20
Q

What are the four main challenges in modern distributed applications?

A

Components lack pre-defined roles, Encapsulation requirements, Need for explicit interaction control, Minimal coupling between components