A Java program that demonstrates use of concurrency control to ensure processes access a common resource in a fair way.