This project implements the Berkeley algorithm for clock synchronization between multiple clients and a server.
-
Make
server.pyexecutable:chmod +x server.py
-
Run the server:
python3 server.py
-
Run the client(s):
python3 client.py
- The server acts as a time coordinator.
- Clients request the time from the server.
- The server calculates the average time and sends it back to clients for synchronization.
- Python 3.x
- Ensure that
server.pyis executable and both the server and clients can communicate via the specified ports.