From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <22adeba8a2e8a2167f3ea4178f936085@terzarima.net> From: Charles Forsyth Date: Thu, 22 Sep 2011 12:46:02 +0100 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] rwlocks on plan9 Topicbox-Message-UUID: 2b9b20b6-ead7-11e9-9d60-3106f5b1d025 >is this how its susposed to work? yes. the queued locks are associated with data, not with a process: one process can acquire the lock and another release it. that probably isn't used often at all, but it's the best way to think of it. spin locks have a tighter link with a process because (after all) they're intended for short sections of code without rescheduling.