Distributed Transaction Management, Autumn 2003 , Exercise 1 1. Create a program which opens a socket, listen it and answer to all programs who connect to it. This should be easy with Java-tutorial from http://java.sun.com/docs/books/tutorial/networking/ 2. Write a coordinator based locking method. Coordinator has a vector of integers which clients can ask exclusive or shared locks. Your implementation does not need to implement queues for locks and manage from deadlocks. 3. Write a voting based locking manager. You need several resource managers. You don't need to manage from failutes e.g. queue for locks and deadlocks. 4. Write a pseudocode for queue based locking manager using voting. You dont need to manage deadlocks. 5. Implement previous exercise.