Sample code for JVM Concurrency series Part 4