SWEN 342
Timers Demo Activity
- Run this only on a Linux system. This does not build on macOS or cygwin.
- timers zip
- Refer to Timers
- Library call for timer_create
- I recommend running this on nitron.se.rit.edu.
- SE password reset: reset
Assignment description
- Study the code for both example timers. Describe the architecture in your report
(use the standard report template).
- Use the valgrind utility to assess software errors on both demos. Attempt to find a way
to eliminate the memory leaks.
- Use the time utility to assess resource usage.
- Experiment with the kbhit code provided in this zip: kbhit_sample
and record your results in your report.
- Add a spin loop in the main program to consume CPU time. Change this loop at the end of main
to include a for loop that counts to perhaps 100000. Change this code: while(getchar()!='\n')
- Report all of the above in your report.
- Submit this via git in the timers_demo directory in your repo.
L. Kiser Feb. 22, 2023