Wave Algorithms Flashcards
What are the fallacies of distributed computing? (Description)
Assertions describing false assumptions.
List the 8 fallacies of distributed computing
- Network is reliable
- Network Latency is zero
- Bandwidth is infinite
- Network is secure
- Topology doesn’t change
- One administrator
- Transport cost is zero
- Network is homogenous
What are the 2 assumptions made throughout?
- System is asynchronous
- Process identity is unique
A process is abstracted as a ____ of _____
Sequence of Events
If event A has precedence over event B, how do we write it?
a < b
What is a meaningless system?
Each process executes at least one event and no event is related to another.
Describe a simple wave algorithm
P broadcasts M; decides after every process has acknowledged M to P.
When is a wave algorithm centralised?
If there must be exactly one initiator per execution.
Describe a Tree Algorithm’s principles
- A process waits until it receives a <tok> from all but its silent neighbour</tok>
- The process sends a <tok> to it's silent neighbour</tok>
- If process receives <tok> from SN, it decides.</tok>
Is an echo algorithm centralised or decentralised?
Centralised.
What are the principles of an echo algorithm?
- Initiator sends token to all its neighbours
- When a non-initiator FIRST receives a token, it:
1. Notes down token sender as father.
2. Sends token to all neighbours except father
3. After receiving token from all neighbours, it sends a token to father. - When initiator receives token from all neighbours, it decides.