I was wondering if someone could point me to some good resources for help on writing a monitoring system. It will be a loop driven system that needs to perform various tasks based on time intervals, with a prefered time granularity of 100ms. The piece I need help with is the loop itself and how to manage the time cycles and etc.. I have never written anything like this and was hoping there were some good sites/resources for a good starting point.
I desire to write this in C but C++ would also work.