How to send alarm to a thread? I can set alarm in main thread, but how then send exception to another thread to wake it if it executes too long?