From owner-freebsd-threads@FreeBSD.ORG Fri Feb 20 05:08:48 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D919F16A4CE for ; Fri, 20 Feb 2004 05:08:48 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id A874C43D1D for ; Fri, 20 Feb 2004 05:08:48 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 3F7345309; Fri, 20 Feb 2004 14:08:47 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 2E9EE5308 for ; Fri, 20 Feb 2004 14:08:41 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 12E8533C6F; Fri, 20 Feb 2004 14:08:41 +0100 (CET) To: threads@freebsd.org From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 20 Feb 2004 14:08:41 +0100 Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 Subject: cross-thread locking X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 13:08:49 -0000 - What happens when a thread locks a mutex and then starts another thread? Does the new thread in any way inherit the lock, or will it have to acquire its own? - What about spin locks? Are there any semantic differences between mutexes and spin locks in POSIX, or are spin locks simply mutexes that spin instead of sleeping? DES --=20 Dag-Erling Sm=F8rgrav - des@des.no