An exercise for the Processes and Services Programming module: solve the producer-consumer problem with Java threads. I turned it into a management game in Java Swing, with a strict Model-View-Presenter architecture and a fully custom retro interface.
You order a product and pay its cost. A free producer picks up the order, makes it and leaves the unit in stock. Customers arrive, queue, sit down, take a unit and pay its price. With the earnings you open up to 8 producers, upgrade them, unlock products and run promotions. Producers and customers are threads, and every unit goes through two shared resources in a chain, the order list and the stock, both guarded with synchronized and wait/notifyAll. The view never talks to the model: every 16 ms the presenter reads it and builds an immutable snapshot for the view to paint.
The interface is a retro desktop drawn in Swing: windows with striped title bars, pixel icons, segmented bars, pattern fills and a pixel font. Four themes, Mac, Game Boy, SNES and 8-bit, switch at runtime from the Theme menu.