Use atomic signal & wait operations.