I need to do a watchdog for a process. That process (let's call it p2) is also coded by me.
However, since this is a assignment for school, I'm supposed to figure a way to see if p2 is still alive without p2 doing anything at all.
The way i'm thinking this means no semaphores and no pipes.
Anyone has any idea of what mechanism can be used? I've been thinking about this for days but can't come up with anything.
Thanks in advance.