This project demonstrates a simple web server-client architecture in Java, showcasing both single-threaded and multi-threaded implementations.
- ✅ Multi-threaded Server that handles multiple client requests concurrently using threads.
- ✅ Single-threaded Server for comparison and understanding.
- ✅ Java
SocketandServerSocketAPIs used for TCP-based communication. - ✅ Simple use of functional interfaces like
ConsumerandRunnable. - ✅ Client capable of spawning multiple threads to test server concurrency.
Navigate to the src/ directory in terminal:
cd path/to/web-server/src
javac MultiThreaded/*.java SingleThreaded/*.java