How ionut-valeriu/distributed-systems-labs works
This repository is a collection of independent Go exercises for distributed-systems coursework, not one integrated application. The principal workflow is to run an exercise, which performs its own computation or communication demonstration and prints a result. The exercises progress from basic Go tasks and channels to clock synchronization, leader election, consensus, and robot coordination. The README documents only Labs 01–02; later lab topics are identified by the sampled source. Connections are shown only where excerpts support them.
Main entry points: Lab05/ex1.go Robot Averaging · Lab01/ex1.go Prime Check · ex9.go Pair Sum · ex2.go Channel Receiver
Components 24
Go Basics
- Prime Check
Lab01/ex1.go - Exercise 2
Lab01/ex2.go - Exercise 3
Lab01/ex3.go - Slice Exercise
Lab01/ex4.go - Exercise 5
Lab01/ex5.go - Exercise 6
Lab01/ex6.go - Exercise 7
Lab01/ex7.go - Exercise 8
Lab01/ex8.go - Pair Sum
Lab01/ex9.go
IPC Exercises
- Exercise 1
Lab02/ex1.go - Channel Receiver
Lab02/ex2.go - Channel Sender
Lab02/ex3.go - Exercise 4
Lab02/ex4.go - Exercise 5
Lab02/ex5.go - Exercise 6
Lab02/ex6.go - Robot Pair
Lab02/ex7.go
Clock Exercises
- Clock Offset
Lab03/ex1.go - Lamport Events
Lab03/ex2.go
Consensus Exercises
- Ring Election
Lab04/ex1.go - Round Election
Lab04/ex2.go - Vote Averaging
Lab04/ex3.go
Robot Coordination
- Robot Averaging
Lab05/ex1.go
Other components
- Exercise Runner
- Coordinate Input
Lab05/coords.txt
Connections 23
- Exercise Runner → Prime Check: runs
Lab01/ex1.go - Exercise Runner → Pair Sum: runs
Lab01/ex9.go - Exercise Runner → Channel Receiver: runs
Lab02/ex2.go - Exercise Runner → Channel Sender: runs
Lab02/ex3.go - Exercise Runner → Robot Pair: runs
Lab02/ex7.go - Exercise Runner → Clock Offset: runs
Lab03/ex1.go - Exercise Runner → Lamport Events: runs
Lab03/ex2.go - Exercise Runner → Ring Election: runs
Lab04/ex1.go - Exercise Runner → Round Election: runs
Lab04/ex2.go - Exercise Runner → Vote Averaging: runs
Lab04/ex3.go - Exercise Runner → Robot Averaging: runs
Lab05/ex1.go - Prime Check → Exercise Runner: prints result
Lab01/ex1.go - Pair Sum → Exercise Runner: prints pairs
Lab01/ex9.go - Channel Receiver → Exercise Runner: prints message
Lab02/ex2.go - Channel Sender → Exercise Runner: prints messages
Lab02/ex3.go - Robot Pair → Exercise Runner: reports positions
Lab02/ex7.go - Clock Offset → Exercise Runner: prints estimates
Lab03/ex1.go - Lamport Events → Exercise Runner: prints events
Lab03/ex2.go - Ring Election → Exercise Runner: prints leader
Lab04/ex1.go - Round Election → Exercise Runner: prints leader
Lab04/ex2.go - Vote Averaging → Exercise Runner: prints decisions
Lab04/ex3.go - Robot Averaging → Coordinate Input: reads coordinates
Lab05/ex1.go - Robot Averaging → Exercise Runner: prints positions
Lab05/ex1.go