From owner-freebsd-arch Thu Dec 2 9:41:32 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 2E80A14BFC for ; Thu, 2 Dec 1999 09:41:27 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id SAA18128 for ; Thu, 2 Dec 1999 18:41:26 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id SAA83943 for freebsd-arch@freebsd.org; Thu, 2 Dec 1999 18:41:25 +0100 (MET) Received: from plunger.gdeb.com (plunger.gdeb.com [153.11.11.3]) by hub.freebsd.org (Postfix) with ESMTP id 34BAA14C19 for ; Thu, 2 Dec 1999 09:40:10 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from orion.caen.gdeb.com ([153.11.109.11]) by plunger.gdeb.com with ESMTP id MAA02763; Thu, 2 Dec 1999 12:32:07 -0500 (EST) Received: from vigrid.com (clcrtr [153.11.109.129]) by orion.caen.gdeb.com (8.9.3/8.9.3) with ESMTP id MAA96507; Thu, 2 Dec 1999 12:34:30 -0500 (EST) (envelope-from eischen@vigrid.com) Message-ID: <3846ADA5.72017F25@vigrid.com> Date: Thu, 02 Dec 1999 12:34:29 -0500 From: "Daniel M. Eischen" X-Mailer: Mozilla 4.51 [en] (X11; U; FreeBSD 3.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Daniel C. Sobral" Cc: Jake Burkholder , Julian Elischer , arch@freebsd.org Subject: Re: Threads stuff References: <19991127223909.22A511FCF@io.yi.org> <3846A720.2BA461A6@newsguy.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Daniel C. Sobral" wrote: > > Jake Burkholder wrote: > > > > I'm just going from what Daniel said about libc_r having > > to get the time of day and set the interval timer in > > order to do a context switch, which can probably be > > done in one system call. Either the context can be > > Mmmm... I though gettimeofday() was a very slow system call... I'll > have to check that. Where's the rest of this thread? Not to say that clock_gettime is any better, but gettimeofday was used probably because clock_gettime didn't/doesn't exist in FreeBSD-2.x. If anyone is going to be measuring context switch times of the current libc_r, please remember that there are at least a couple of extra system calls per thread switch (gettimeofday and setitimer). And if there are any threads doing I/O, there will be an additional poll(). Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message