Completed alarm functionality for sleeping threads