This small program is using Java multi-threading to implement the producer-consumer model