hi,
#include<signal.h>
#include<stdio.h>
void handler();
int alarmflag=0;
{
signal(14,handler);
alarm(3);
while(!alarmflag)
{
pause();
printf("signal received\n");
}
printf("loop ends");
}
void handler()
{
printf("an alarm signal was received\n");
alarmflag=1;
}
here, what is alarm? what is the function handler, it
is a new process or not? when it will be run. please tell me
thank you very much.
Code:ss