What would be the best way to run certain code (c++ cross-platform) at specific intervals :
for example :
- run code block 1 each second
- run code block 2 each 5 seconds
- run code block 3 every 3600 seconds
This whole application should run as a service (windows/linux) and while not executing certain code blocks it should execute other code also.