From owner-freebsd-hackers Sun Jan 16 22: 7:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from oskar.dev.nanoteq.co.za (oskar.dev.nanoteq.co.za [196.7.114.5]) by hub.freebsd.org (Postfix) with ESMTP id 7C19314DDE for ; Sun, 16 Jan 2000 22:07:47 -0800 (PST) (envelope-from rbezuide@oskar.dev.nanoteq.co.za) Received: (from rbezuide@localhost) by oskar.dev.nanoteq.co.za (8.9.3/8.9.0) id IAA20072; Mon, 17 Jan 2000 08:05:43 +0200 (SAT) From: Reinier Bezuidenhout Message-Id: <200001170605.IAA20072@oskar.dev.nanoteq.co.za> Subject: Re: Preemptiveness of FreeBSD threads In-Reply-To: <200001170558.HAA19865@oskar.dev.nanoteq.co.za> from Reinier Bezuidenhout at "Jan 17, 0 08:01:05 am" To: rbezuide@oskar.dev.nanoteq.co.za (Reinier Bezuidenhout) Date: Mon, 17 Jan 100 08:05:43 +0200 (SAT) Cc: jasone@canonware.com, wes@softweyr.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi ... > > I also ran this program on a 4.0-current as of about Jan 13 2000 :) > > It generates the errornous output like clock work on my machine (after about > 30 tries - no exception). I then though that maybe the system gets so buzy > that it has difficulty on starting the threads - yes I know this should not > be a problem. > > I added a "sleep (1);" as the FIRST instruction in the "start_my_thread" > functioni (Thus it is not inside the loop). This causes the following > output every time. > Seems like I have to recall this statement - I've just removed the sleep and recompiled and now it seems to work again ... and just about everytime I've tested it ... I am now just as confused as anyone else :/ Reinier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message