-1

In APUE, in section 10.10, after figure 10.7, the following paragraph was written

1- If the caller already has an alarm set, that alarm is erased by the first call to alarm(). We can correct this by looking at alarm()’s return value. If the number of seconds until some previously set alarm is less than the argument, then we should wait only until the existing alarm expires. If the previously set alarm will go off after ours, then before returning we should reset this alarm to occur at its designated time in the future.

My question is how can I implement these two cases in C?

user207421
  • 305,947
  • 44
  • 307
  • 483
tahzibi
  • 77
  • 6

0 Answers0