Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2004 15:55:49 +0600
From:      "ngl" <ngl@ur.ru>
To:        "Tim Robbins" <tjr@freebsd.org>
Cc:        freebsd-standards@FreeBSD.org
Subject:   Re: Shared/exclusive (rw) locks
Message-ID:  <0eb601c4633f$6ac150c0$8501a8c0@spirit>
References:  <0e0401c46312$089eea10$8501a8c0@spirit><20040706050055.GA63647@cat.robbins.dropbear.id.au><0e3d01c46316$df50c7a0$8501a8c0@spirit><20040706054134.GB63647@cat.robbins.dropbear.id.au><0e6601c46324$d335afe0$8501a8c0@spirit> <20040706071732.GA64106@cat.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message ----- 
From: "Tim Robbins" <tjr@freebsd.org>
To: "ngl" <ngl@ur.ru>
Cc: <freebsd-stable@freebsd.org>
Sent: Tuesday, July 06, 2004 1:17 PM
Subject: Re: Shared/exclusive (rw) locks


> On Tue, Jul 06, 2004 at 12:45:27PM +0600, ngl wrote:
> > That means, freebsd stable has no spin rwlocks ?
>
> Right. Reader-writer spinlocks would not be very useful in FreeBSD 4;
because
> only one thread can be running in the kernel at once

Forgive for my importunity, but what about smp ?

> , the only opportunity
> you'd have to share reader locks would be if you slept while holding a
> spinlock, which is a bad idea (and not permitted by FreeBSD 5 or Linux).
> If you want -rwlocks, you'll have to use lockmgr() (which is a sleep
lock).
>
>
> Tim
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Thanks,

Nik



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0eb601c4633f$6ac150c0$8501a8c0>