README.md
md1 kBIn IN441- Code.zip
Distributed Systems Java Study Sheet
This repository is organized as a small exam-prep reference for three topics:
src/java_threads: basic Java thread creation, scheduling hints, and synchronization.src/tcp_socket: TCP client/server examples, including echo servers and calculator exercises.src/udp_socket: UDP request/response examples, including string processing and simple calculators.
Running an Example
Compile everything from the project root:
javac -d out $(find src -name "*.java")Run any class with its package name, for example:
java -cp out java_threads.ex6.RaceConditionDemo
java -cp out tcp_socket.ex1.Server
java -cp out udp_socket.ex1.ClientNotes
- Package names now match the folder structure, so IDEs and
javaccan resolve them correctly. - TCP and UDP examples use different ports to avoid accidental clashes when you experiment with several exercises.
- The comments are intentionally short and study-oriented: they explain the concept each file demonstrates without hiding the actual networking or threading steps.
In IN441- Code.zip
src/4
exams/2
final_24_25_1/4
exercise_3/5
Client.java1 kBREADME.md1 kBServer.java1 kBTextAnalysisService.java1 kBTextAnalysisServiceImpl.java1 kBFinal 24-25 (1st session).pdf772 kB
final_24_25_2/4
exercise_3/6
Book.java1 kBClient.java2 kBLibraryService.java1 kBLibraryServiceImpl.java2 kBREADME.md1 kBServer.java1 kBInfo408 24-25 (2nd session).pdf280 kB