Added support for BinarySemaphore to illustrate how to use Java built-in monitor objects.