alarm

Function Prototype

unsigned int alarm(unsigned int secs)

Function

  • SIGALRM is generated when the timer expired
  • The alarm might not be accurate because of CPU scheduling
  • When the previous alarm is replaced by the new value, the left seconds is returned
  • alarm(0) resets the alarm

pause

Function Prototype

int pause(void)

Function

  • pause() suspends the calling process until receiving a signal
  • Returns -1 with errno set to EINTR