Using Java, a multithreaded bus simulation has been created that showcase threads and their abilities as well as the java.util.concurrent package utilities that can be used.
This assignment was graded an A+ (GPA 4.00) by Asia Pacific University Lecturer (Mr. Zailan Arabee was my direct lecturer).
Concepts | Applied |
---|---|
Race Conditions | Solved |
Thread Starvation/Fairness | Solved |
Thread Interference | Solved |
Atomicity of Operations | Solved |
Preventing Slipped Conditions | Solved |
Synchronisation Performance Overhead | Minimized |
Graceful Shutdown via/ Poison Pill | Applied |
java.util.concurrent | Applied |
---|---|
synchronized code-blocks | Yes |
CountDownLatch | Yes |
Atomic Variables | Yes |
ReentrantLocks | Yes |
BlockingQueues | Yes |
BlockingDequeus | Yes |
Semaphores | Yes |
volatile | Yes |
Others? | Not needed |
Click the video image below to be re-directed to a YouTube video.