/* * Standard include files * */ #include #include #include #include #include #include #include /* * The delta structure ... It's useful as a delta list, and is also * used for the non-delta list additional work linked list. * */ struct delta { char proc; int count; struct delta *next; }; struct delta *dlist; /* Global delta list variable */ int clockpid=0, salarm=0; /* clockpid - PID of the clock process salarm - Semaphore ALARM ... */ unsigned int procstatus=0; /* The process bit vector variable... Global of course. */ /* * Function declarations * */ extern int myclock(int); /* The myclock() function */ void Printd(struct delta *); int AddAlarm(char,int); int Cleanup(void); int Init(void); int CreateProcess(int (*pFunc)(),int dvalue); void handler(); void die(char *);