Concurrent and Real-Time Programming in Java