From owner-freebsd-hackers Thu Jun 24 17:22:39 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from picnic.mat.net (picnic.mat.net [206.246.122.133]) by hub.freebsd.org (Postfix) with ESMTP id 6970B152DB for ; Thu, 24 Jun 1999 17:22:35 -0700 (PDT) (envelope-from chuckr@picnic.mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.3/8.8.5) with ESMTP id UAA43679; Thu, 24 Jun 1999 20:21:20 -0400 (EDT) Date: Thu, 24 Jun 1999 20:21:20 -0400 (EDT) From: Chuck Robey To: "David E. Cross" Cc: Alfred Perlstein , Karl Denninger , "Brian F. Feldman" , Doug , Mark Newton , drosih@rpi.edu, grog@lemis.com, mike@smith.net.au, hackers@FreeBSD.ORG Subject: Re: Microsoft performance (was: ...) In-Reply-To: <199906242059.QAA68044@cs.rpi.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 24 Jun 1999, David E. Cross wrote: > I think mutex is the way to go. I am 100% for it, and I think now that this > problem is getting a good deal of light we should start to do something about > it. > > One of the problems with locks that doesn't seem to have been mentioned > (although I am sure many have thought it) is deadlocks. You get A waiting > for B and b with A. With mutexi (plural?) you would lock just the resource > that you are curently working on, and you would be guaranteed to release it > (if the programmers do it right, of course ;). The advantage is with Mutex > is that you don't need to be as omnipotent to use it. Did you forget the fact that in order to remove a giant lock set up, so that you go one step, or multiple steps, below that, the locks below the giant lock must ALL be there, no mistakes or omissions allowed. It's well worth doing, but it's not a deal like adding just one lock, no sir! ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@picnic.mat.net | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run picnic and jaunt, both FreeBSD-current. (301) 220-2114 | ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message