Date: Mon, 20 Nov 1995 14:41:23 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: cimaxp1!jb@werple.net.au (John Birrell) Cc: terry@lambert.org, hackers@FreeBSD.org, jb@cimlogic.com.au Subject: Re: int type in jmpbuf Message-ID: <199511202141.OAA02182@phaeton.artisoft.com> In-Reply-To: <199511202102.IAA16453@werple.net.au> from "John Birrell" at Nov 21, 95 08:06:06 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > You are assuming that a signal is an event in using it for your scheduler > > and are in fact screwing up as a result. > > The occurrence of a signal condition gives us an _opportunity_ to check if > there is another thread that should run instead of the running thread. Async > I/O gives us the same opportunity. I don't think we are "screwing up as a > result". Actually, the occurance of a signal condittion give you the _opportunity_ to set a flag. Then you check the flag on a blocking call *not* in the signal handler before actually making the call to decide to do the context switch, and the problem goes away. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511202141.OAA02182>