Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2001 11:43:00 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Alfred Perlstein <bright@mu.org>, arch@freebsd.org
Subject:   Re: the condvar stuff. 
Message-ID:  <200112271943.fBRJh0F01276@mass.dis.org>
In-Reply-To: Your message of "Thu, 27 Dec 2001 01:18:08 PST." <Pine.BSF.4.21.0112270045200.85465-100000@InterJet.elischer.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > > Why do we need the condvar stuff? it seems very similar
> > > to the existing msleep code.
> > 
> > They're a lot easier to get right than the flags based approach
> > since you don't have to roll your own.
> 
> In other words they are like msleep.

No, they are condition variables.

They exist to provide a mechanism that is familiar to a large number of 
thread programmers, and which has a good body of related algorithms 
already established.

They directly parallel the condition variables found in the pthread 
library, again keeping the kernel and userland programming metaphors as 
close as is practical.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112271943.fBRJh0F01276>