- There are three clocks
- Coordination between the distrbuted
- Achieving the common goal is called distributed coordination
- - No shared memory
- - No shared clock
- - Message delays
- - Lack of global knowledge
- - Syncs global clock to local clock
- Q1 15 marks difference
- global clock
- local clock
- logical clock
- when commiting any event on application local time is consider.
- // shared clock are in parallel
- local transaction ,remote transaction, global
- challenging task when there's lack of global clock
- global state detection
- transaction process T - transaction get recorded with the time
- Every event needs to have their own state
- e.g, transferring money, when one sender sends money, it records the current amount, and the amount that has to be transferred, deducts from sender side and receives at the receipent side, all these events are recorded.
- Difference between N and N1 = N - Sent messages
- N is current state, N1 is next state
- M = receive messages
- N = sent messages wherea m = recieved message . for example 1st time n=0 and m=0; when we send n1=1 and when recieved m1=1
Recent Pastes