user-space locks

Vlad GALU dudu at dudu.ro
Sat Mar 10 00:04:42 UTC 2007


On 3/10/07, Kip Macy <kip.macy at gmail.com> 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 <peter_holmes2003 at yahoo.com> 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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> >
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at 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.


More information about the freebsd-hackers mailing list