Added Ruby styles for monitor and atomic threading.