From owner-freebsd-hackers Tue Apr 1 11:32:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA23339 for hackers-outgoing; Tue, 1 Apr 1997 11:32:07 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA23334 for ; Tue, 1 Apr 1997 11:32:03 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id VAA04827; Tue, 1 Apr 1997 21:31:53 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id UAA16300; Tue, 1 Apr 1997 20:34:29 +0200 (MET DST) Message-ID: <19970401203429.XR37988@uriah.heep.sax.de> Date: Tue, 1 Apr 1997 20:34:29 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.org Cc: joe@pavilion.net (Josef Karthauser), gbeach@cybernet.com Subject: Re: Internal clock References: <3340C326.6150@cybernet.com> <19970401151947.61221@pavilion.net> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <19970401151947.61221@pavilion.net>; from Josef Karthauser on Apr 1, 1997 15:19:47 +0100 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Josef Karthauser wrote: > I'm using gettimeofday which returns: > > struct timeval { > long tv_sec; /* seconds since Jan. 1, 1970 */ > long tv_usec; /* and microseconds */ > }; > > I've no idea of the actual system resolution, ... RTFM clocks(7). > BTW a question to the hackers... does anyone have any plans for > adding a real-time scheduling class, aka threads under solaris? There's already a pseudo-realtime scheduling class available, see rtprio(1). This has, of course, nothing to do with threads at all, nor will it be true realtime, since there's still the problem that scheduling doesn't happen while running in kernel context (i.e., the kernel cannot be preempted -- Solaris seems to have gone great lengths to create some preemption points for long-time running kernel functions). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)