From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 10 00:04:42 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8059916A403 for ; Sat, 10 Mar 2007 00:04:42 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 22CBD13C461 for ; Sat, 10 Mar 2007 00:04:41 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by nf-out-0910.google.com with SMTP id k27so1182768nfc for ; Fri, 09 Mar 2007 16:04:41 -0800 (PST) Received: by 10.82.177.3 with SMTP id z3mr3786971bue.1173483512569; Fri, 09 Mar 2007 15:38:32 -0800 (PST) Received: by 10.82.148.5 with HTTP; Fri, 9 Mar 2007 15:38:32 -0800 (PST) Message-ID: Date: Sat, 10 Mar 2007 01:38:32 +0200 From: "Vlad GALU" To: hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> Cc: Subject: Re: user-space locks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2007 00:04:42 -0000 On 3/10/07, Kip Macy wrote: > umtx > Is it safe/recommended to use spinlocks, like in jemalloc, for very small portions of code? I'm particularly interested in protecting writes to a couple of word sized ints on amd64, so the critical section wouldn't be longer than two assignments. Of course, I could use a lockless queue for my purposes, but I'm asking anyway. > On 3/9/07, Peter Holmes wrote: > > Does FreeBSD have anything similar to Futexes for > > Linux. > > > > Thanks, > > Peter > > > > > > > > ____________________________________________________________________________________ > > Looking for earth-friendly autos? > > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. > > http://autos.yahoo.com/green_center/ > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.