parallele-programmierung/u05-4
Luca Conte 636efbe8b3 add assignment readmes 2025-05-07 21:06:08 +02:00
..
README.md add assignment readmes 2025-05-07 21:06:08 +02:00
Semaphore.java first attempt u05-4 2025-04-16 05:47:07 +02:00
WorkQueue.java add finally block 2025-04-20 00:27:05 +02:00

README.md

Problem 5.4: Work queue of limited length using semaphores

Implement the work queue of limited length from problem 4.2 using semaphores as the only synchronization mechanism, i.e. without synchronized blocks or methods (and, consequentially, not wait() or notify()). Test your program with your own semaphore class from problem 5.3 and with java.util.concurrent.Semaphore. Make sure not to use busy waiting: If a thread has to wait, use semaphore operations for this.