Learn Java interruption mechanism.