I have a list of clients say (A,B,C,D) that have their own time periods/windows. I set a timer internally based on the next window expiry... from among (A,B,C,D)'s window sizes..
For example:
Client Window Size
A 10
B 15
C 20
D 50
So timer expiry is going to be: 10,15,20,30,40,45,50 ...
What's the best way to do this? Choosing C as our language to implement. Client Periods are stored in a statically allocated array (we know the size)