From owner-freebsd-hackers Mon Nov 20 18:03:31 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA07637 for hackers-outgoing; Mon, 20 Nov 1995 18:03:31 -0800 Received: from werple.net.au (0@werple.mira.net.au [203.9.190.18]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA07629 for ; Mon, 20 Nov 1995 18:03:27 -0800 Received: from cimaxp1.UUCP (Ucimlogi@localhost) by werple.net.au (8.7/8.7.1) with UUCP id MAA29492 for hackers@FreeBSD.org; Tue, 21 Nov 1995 12:06:36 +1100 (EST) Message-Id: <199511210106.MAA29492@werple.net.au> X-Authentication-Warning: werple.net.au: Ucimlogi set sender to cimaxp1!jb using -f Received: by cimaxp1.cimlogic.com.au; (5.65/1.1.8.2/10Sep95-0953AM) id AA19638; Tue, 21 Nov 1995 12:10:31 +1100 From: John Birrell Subject: Re: int type in jmpbuf To: lambert.org!terry@werple.net.au (Terry Lambert) Date: Tue, 21 Nov 1995 12:10:30 +1100 (EST) Cc: hackers@FreeBSD.org, jb@cimlogic.com.au In-Reply-To: <199511210032.RAA02606@phaeton.artisoft.com> from "Terry Lambert" at Nov 20, 95 05:32:13 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@FreeBSD.org Precedence: bulk > > two threads each doing while(1); ?? > > Shoot the programmer. 8-). Attempted suicide is against the law here - I'm a rotten shot. 8-). > > Seriously, nothing requires that the scheduling of threads be preemptive. We have process control software that runs really nicely with preemptive time slicing. I'll concede that its not _required_, but I like the way the software runs as is. > > If you need it, you should add a system call (like SunOS has) to save > and restore register state, including the FP registers. We're doing as the MIT pthreads code does (__asm__ fsave/frstor) to save and restore the FP state on entering the scheduler from the real signal handler. So far we don't see a problem on the 486 we are using. It's the coprocessor problem that Bruce was pointing out that we can't cope with. We're treating that as a limitation and pressing on... > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. > -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au 119 Cecil Street Ph +61 3 9690 9600 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137