Modify HW05 to use signals to pause the output of the timer
Modify HW05 to use signals to pause the output of the timer instead of control characters. So, the only terminal setting you will need to modify programatically is echoing. If the user hits ctrl-C, the program pauses. If they hit it again, it unpauses. Ctrl-\\ terminates and restores the settings gracefully.
Hints :
Spinlocks :
while( pause == true)
{}
If pause is set to true, then this while loop will iterate. When pause gets set to false, this loop gets skipped.
See the attached code for a spinlock example, spinlock.cpp
Spinlock.cpp
HW5
Solution
#include