Subj : Re: How to manage time-slicing in Pthreads programs? To : comp.programming.threads From : jd Date : Mon Feb 21 2005 05:09 pm > >> > What does it use for ^C and timers? How is the timer action executed? > >> > >> Most GUI's use event queues. Most of the synchonization api on windows, > >> unix, and java has timeout options. > > > > I don't thing that polling an event queue to find out if there was SIGSEGV > > is a very bright idea. > > That doesn't follow. It's not like I think that signals are a great way for introducing asynchronicity in a single-threaded programs. But what to do with events which generate SIGILL, SIGABRT, SIGFPE, SIGKILL, SIGSEGV, SIGTERM, SIGBUS and possibly some more? Ignore or force OS to act always the same way (eg. terminate with core dump)? They are not "GUI-events", which are like other signals, SIGIO, SIGINT or, most noticeably, SIGUSR1. In fact it's more like a question - i'm programming only for unices, so I don't know how it's done on other systems. Well, maybe it is off-topic - but since I asked... :P JD .