Implemented asynchronous alarm using fork()