From owner-freebsd-arch Mon Sep 11 23:32:18 2000 Delivered-To: freebsd-arch@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 2573437B422 for ; Mon, 11 Sep 2000 23:32:13 -0700 (PDT) Received: (from grog@localhost) by wantadilla.lemis.com (8.11.0/8.9.3) id e8C6Vl424063; Tue, 12 Sep 2000 16:01:47 +0930 (CST) (envelope-from grog) Date: Tue, 12 Sep 2000 16:01:47 +0930 From: Greg Lehey To: Joerg Micheel Cc: John Baldwin , Chuck Paterson , Jason Evans , arch@freebsd.org Subject: Re: Long-term mutex ownership (was Re: Interruptable mutex aquires.) Message-ID: <20000912160147.A23948@wantadilla.lemis.com> References: <20000912143855.O88615@wantadilla.lemis.com> <200009120515.WAA78736@pike.osd.bsdi.com> <20000912175725.A70000@cs.waikato.ac.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000912175725.A70000@cs.waikato.ac.nz>; from joerg@cs.waikato.ac.nz on Tue, Sep 12, 2000 at 05:57:25PM +1200 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 12 September 2000 at 17:57:25 +1200, Joerg Micheel wrote: > On Mon, Sep 11, 2000 at 10:15:25PM -0700, John Baldwin wrote: >> Greg Lehey wrote: >>> The general consensus (which I currently don't yet share) is that we >>> should use condition variables for things like async event waits. I'm >>> still looking for a consistent definition of condition variables, and >>> how they differ from "mutexes". >> >> Go grab Andrew S. Tannebaum's (sp?) _Modern_Operating_Systems_. One of >> the first chapters gives execellent treatment to comparing/contrasting >> mutexes, semaphores, condition variables, and sleep/wakeup. > > ... and once you are done with it find out that it is all the same > just offering different views onto something that can be implemented > and used in exactly the same way. I've just gone through this - > trying to explain it to 239 second years students - I can't see any > difference. My point exactly. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message