Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2001 14:14:12 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Mike Smith <msmith@freebsd.org>, arch@freebsd.org
Subject:   Re: the condvar stuff.
Message-ID:  <20011227141412.G55891@elvis.mu.org>
In-Reply-To: <Pine.BSF.4.21.0112271135510.84622-100000@InterJet.elischer.org>; from julian@elischer.org on Thu, Dec 27, 2001 at 11:43:29AM -0800
References:  <200112271943.fBRJh0F01276@mass.dis.org> <Pine.BSF.4.21.0112271135510.84622-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Julian Elischer <julian@elischer.org> [011227 14:00] wrote:
> so, is there such a thing in 
> pthread condvars as an uncancellable condvar?
> 
> 
> On Thu, 27 Dec 2001, Mike Smith wrote:
> > 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.
> 
> I don't know how good an idea this is..
> we are getting VERY kitchen-sinky in the kernel. Can I have a C++
> allocator too?
> 
> enumerate:
> 	mem allocators: mbuf/malloc/zalloc/kvalloc-etal/bus-space-alloc

I hope to finish my slab allocator in the next couple of months
this should collapse malloc and zalloc into a single subsystem.

> 	synchronisation: primatives CV/msleep/mtx/sx/lockmanager(gone?)

Eventually we will be able to get rid of msleep.

> 	thread schemes: (aio/kthreads/linux-thread-support/KSE)
> etc :-)

Hopefully KSE will be flexible enough to implement aio, kthreads
and linux-threads with a small wrapper, right? :)

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/

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?20011227141412.G55891>