This repository contains Java implementations of solutions to common concurrency problems. These solutions are provided as examples for working with multi-threading and synchronization in Java.
- Java
- Basics of Concurrency(Mutex, Semaphore, Synchronized blocks)
- Reader-Writer Problem - Solution to synchronise threads for n-reader and n-writer problem.
- Dining-Philosopher Problem - Implementation of classic Dining philosopher using Semaphores.
- Uber Riber Problem - Design a system wherein rides need to be an acceptable combination of riders. For the given problem I have assumed an even number of passengers wherein all riders can either be Type A or Type B or half of both.
For a detailed description of problems go through this link.
Happy Coding!