Write a program called snooze that takes a single command-line argument, calls the snooze function from Problem
Question:
Write a program called snooze that takes a single command-line argument, calls the snooze function from Problem 8.5 with this argument, and then terminates. Write your program so that the user can interrupt the snooze function by typing Ctrl+C at the keyboard. For example:
Problem 8.5
Write a wrapper function for sleep, called wakeup, with the following interface:
unsigned int wakeup(unsigned int secs);
The wakeup function behaves exactly as the sleep function, except that it prints a message describing when the process actually woke up:
Woke up at 4 secs.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Question Posted: