From owner-freebsd-hackers Tue Jan 5 15:26:46 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA00643 for freebsd-hackers-outgoing; Tue, 5 Jan 1999 15:26:46 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA00623 for ; Tue, 5 Jan 1999 15:26:37 -0800 (PST) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id PAA11176; Tue, 5 Jan 1999 15:23:36 -0800 (PST) Received: from utah.XYLAN.COM by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id PAA01405; Tue, 5 Jan 1999 15:23:35 -0800 Received: from softweyr.com by utah.XYLAN.COM (SMI-8.6/SMI-SVR4 (xylan utah [SPOOL])) id QAA13527; Tue, 5 Jan 1999 16:23:34 -0700 Message-ID: <36929EF6.B771B6F3@softweyr.com> Date: Tue, 05 Jan 1999 16:23:34 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 2.2.7-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Nate Williams CC: Bob Bishop , Narvi , Terry Lambert , bright@hotjobs.com, hackers@FreeBSD.ORG Subject: Re: question about re-entrancy. References: <199901052008.NAA09332@mt.sri.com> <199901052043.NAA09607@mt.sri.com> <199901052242.PAA10308@mt.sri.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nate Williams wrote: > > > >A 'critical section of code' is a portion of the code that is accessing > > >a shared resource, which can be protected by using an object lock. > > > > Erm, make that "...accessing *one or more* shared resources.", which is why > > it isn't the same thing as an object lock (except in the degenerate case). > > Sure it is. The object lock is used to 'protect' the shared resources. > This is multithreading/tasking 101 stuff, not rocket science. Well, it is rocket science if you're working on Pathfinder, which had a deadly embrace problem that was diagnosed, fixed, and uploaded about halfway between Earth and Mars. But it is still elementary multi-threaded programming. ;^) -- Where am I, and what am I doing in this handbasket? Wes Peters +1.801.915.2061 Softweyr LLC wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message