Distributed Systems Long Answers Q3 To Q7
Distributed Systems Long Answers Q3 To Q7
2. Vector Clocks:
- Vector is updated:
- Allows detection of concurrent events (V1 != V2 and neither is less than the other).
Result: All process states and messages in-transit are captured consistently.
1. Introduction to Scheduling:
2. Schematic Representation:
3. Static Scheduling:
4. Dynamic Scheduling:
- Types:
- Sender-initiated
- Receiver-initiated
- Symmetrical
5. Comparison Table:
--------|--------|--------
1. Introduction:
- Consistency models define the rules for visibility and ordering of updates in distributed shared
memory or databases.
Model | Description
------|------------
- Read Your Writes: After a write, the process always sees its effect.
4. Use Cases:
- Sequential: Databases
Architecture:
- Components:
- Vice: Server-side
- Venus: Client-side
Implementation Features:
- Whole-file caching: Files are fetched and stored entirely on the client.
3. Workflow:
4. Benefits:
- High performance
- Scalable
Steps:
1. Initiator process records its state and sends a marker on each outgoing channel.
2. On receiving a marker:
3. Termination:
- Snapshot completes once all processes have recorded their states and all in-transit messages are
logged.
- If P2 receives token from P3 before marker, that token is recorded in P2's channel state.