CST 402 DC QB
CST 402 DC QB
CST 402 DC QB
QUESTION BANK
MODULE 1
If process P10 initiates election, after how many message passes will coordinator be elected
and known to all the processes. What modification will take place to the election message as
it passes through all the processes? (8)
11. In the ring topology shown below if process with identifier 7 initiates election, explain the
election process and show the modifications happening to the election message as it passes
through all the processes. How many election and elected messages will be passed so that
the coordinator be elected and known to all the processes? (8)
3 7
12 5
34
Savion Manuel@Edu Smash
12. Give the liveness and safety requirements for election algorithm? Does ring and bully
algorithm satisfy the safety and liveness conditions? (6)
13. State the issues in recording a global state. (3)
14. Sketch an interpretation in terms of a cut. (3)
15. In chandy-lamport algorithm for recording global snapshots, explain how the recorded local
snapshots can be put together to create the global snapshot. Can multiple processes initiate
the algorithm concurrently? (6)
16. Explain spanning tree based termination detection algorithm with an example? (8)
17. Illustrate the basic rules for termination detection using weight throwing method? Explain the
two invariants that are used in this method to detect termination? (7)
18. Explain the rules that are defined to detect termination using distributed snapshots? (6)
19. Apply spanning tree based termination detection algorithm in the following scenario. The
nodes are processes 0 to 6. Leaf nodes 3, 4, 5 and 6 are each given tokens T3, T4, T5 and T6
respectively. Leaf nodes 3, 4, 5 and 6 terminate in the order, but before terminating node 5, it
sends a message to node 1. (10)
MODULE 3
MODULE 4
MODULE 5