currently, i have a process that does nothing but wait for an event to
trigger off periodically.
i use SIGALRM to set the alarm.
the code is something like this
void alarm_handler(){
triggeredprocess();
alarm(15);
int main(){Quote:}
signal(SIGALRM,alarm_handler);
alarm(15);
while (1) {
}
so my question is, does the infinite loop in the main method wasteQuote:}
processing power?
is there a better way to implement it?
thanks.
Sent via Deja.com http://www.deja.com/
Before you buy.