Concurrency
Print In Order — CountDownLatch vs wait/notify
Three threads must print 'first', 'second', 'third' in order, regardless of scheduling. Compare CountDownLatch (clean one-shot signaling) against synchronized wait/notify (general state machine).
Aug 10, 2026