From owner-freebsd-hackers Tue Apr 17 17:59:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from nwd2mime2.analog.com (nwd2gtw1.analog.com [137.71.23.34]) by hub.freebsd.org (Postfix) with ESMTP id 552DA37B424 for ; Tue, 17 Apr 2001 17:59:21 -0700 (PDT) (envelope-from justin.wojdacki.chiplogic.com@analog.com) Received: from nwd2gtw1 (unverified) by nwd2mime2.analog.com (Content Technologies SMTPRS 4.1.5) with SMTP id for ; Tue, 17 Apr 2001 21:00:15 -0400 Received: from ws4.cpgdesign.analog.com (ws4 [137.71.139.26]) by golf.cpgdesign.analog.com (8.9.1/8.9.1) with ESMTP id RAA01182 for ; Tue, 17 Apr 2001 17:59:17 -0700 (PDT) Received: from chiplogic.com (localhost [127.0.0.1]) by ws4.cpgdesign.analog.com (8.9.1/8.9.1) with ESMTP id RAA02016 for ; Tue, 17 Apr 2001 17:59:21 -0700 (PDT) Message-ID: <3ADCE6E9.633D8275@chiplogic.com> Date: Tue, 17 Apr 2001 17:59:21 -0700 From: Justin Wojdacki Reply-To: justin.wojdacki@analog.com Organization: Analog Devices, Communications Processors Group X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-hackers@freebsd.org Subject: Re: Shoutcast, high cpu, threads References: <20010417235741.A11063@firedrake.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG void wrote: > > The man pages say: > > sleep - suspend process execution for an interval measured in seconds > usleep - suspend process execution for an interval measured in microseconds > > Maybe he's using the wrong routine? > The FreeBSD manpages don't appear to comment on this matter, but usleep() isn't thread safe on all platforms. -- ------------------------------------------------- Justin Wojdacki justin@chiplogic.com (408) 350-5032 Communications Processors Group -- Analog Devices To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message