in reply to A continually running process

Well, you should tell us why this solution is problematic, and perhaps something on what the program does.

One of the many possible alternatives is to set an alarm and a signal handler to trigger an event in an event driven architecture.

But, really, I can't say if it is a viable solution not knowing anything of your project...

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."