From owner-freebsd-smp Fri Dec 8 22:56: 2 2000 From owner-freebsd-smp@FreeBSD.ORG Fri Dec 8 22:56:00 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (Postfix) with ESMTP id 41D0837B400 for ; Fri, 8 Dec 2000 22:56:00 -0800 (PST) Received: (from daemon@localhost) by smtp04.primenet.com (8.9.3/8.9.3) id XAA20291; Fri, 8 Dec 2000 23:51:53 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp04.primenet.com, id smtpdAAA1wa4IN; Fri Dec 8 23:51:48 2000 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id XAA08475; Fri, 8 Dec 2000 23:55:28 -0700 (MST) From: Terry Lambert Message-Id: <200012090655.XAA08475@usr08.primenet.com> Subject: Re: Userland atomic assignments To: adsharma@sharmas.dhs.org Date: Sat, 9 Dec 2000 06:55:27 +0000 (GMT) Cc: eischen@vigrid.com, smp@FreeBSD.ORG In-Reply-To: <200012090629.WAA28103@sharmas.dhs.org> from "Arun Sharma" at Dec 08, 2000 10:29:19 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: tlambert@usr08.primenet.com Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I don't need cmpset operations, just atomic int32 and ptr assignments. > > The latter would be good enough to let me walk a simple list without > > having to take a lock. > > I thought the following URL might be useful to you: > > http://www.cs.rochester.edu/u/www/u/scott/synchronization/home.html > > Especially, the concurrent queue algorithms. The preemption-safe reader-writer locks seem to be excellent, and just what the doctor ordered for Julian's work on netgraph... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message