Posts

Showing posts with the label Java

Implementation of The Byzantine Generals Problem in java based on an assignment

Assignment on Distributed Computing Implement the solution for Byzantine generals problem as we discussed in the class. You can find more details from slides. Test you solution with 4 and 10 nodes with 1 and 2 faulty nodes respectively. You may use the support framework I have provided. See “BasicElection” class for an example. Basically you have to 1. For each participant type in the algorithm implement the interface Participant.EventListener 2. Add the participant to the system via system.createParticipant(..) 3. Then call system.bootUp(); When a message is sent, each participant receives the message via eventReceived(..). You can send messages via system.sendMessage(..) You can download the complete source here

Implementation of Distributed Locks in Java, Based on an assignment...

Assignment on Distributed Computing Implement “Decentralized Algorithm” (Distributed Locks) algorithm as we discussed in the class. Some highlights of the algorithm are 1. Has many replicas of resources and many coordinators 2. Need majority vote from coordinators. Idea is to avoid the effect of failure of coordinators 3. If denied, back-off and retry Can lead to low utilization You may use the support framework I have provided. See “BasicElection” class for an example. Basically you have to 1. For each participant type in the algorithm implement the interface Participant.EventListener 2. Add the participant to the system via system.createParticipant(..) 3. Then call system.bootUp(); When a message is sent, each participant receives the message via eventReceived(..). You can send messages via system.sendMessage(..) You can download the complete source code from here .