From owner-freebsd-questions Mon Feb 16 14:00:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA13017 for freebsd-questions-outgoing; Mon, 16 Feb 1998 14:00:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA12744 for ; Mon, 16 Feb 1998 13:59:52 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id IAA26770; Tue, 17 Feb 1998 08:29:48 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id IAA04935; Tue, 17 Feb 1998 08:29:47 +1030 (CST) (envelope-from grog) Message-ID: <19980217082947.41903@freebie.lemis.com> Date: Tue, 17 Feb 1998 08:29:47 +1030 From: Greg Lehey To: Dave Bodenstab , y-carden@uniandes.edu.co Cc: questions@FreeBSD.ORG Subject: Re: Philosophers References: <199802161847.MAA05044@base486.home.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199802161847.MAA05044@base486.home.org>; from Dave Bodenstab on Mon, Feb 16, 1998 at 12:47:08PM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 16 February 1998 at 12:47:08 -0600, Dave Bodenstab wrote: > >> From: Yonny Cardenas Baron >> >> I need a program in c, whith the solution the Dijkstra's problem >> philosophers eating, using semaphores in UNIX, (FreeBSD). > > Here it is from an *ancient* usenet posting. Just compile with: > > cc -o phil phil.c -lcurses Fascinating. This program seems to use several seconds CPU time (on a K6/233) per move. I wonder how fast it was on the hardware of 20 years ago. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message