Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 2010 19:10:53 -0500
From:      Daniel Eischen <eischen@vigrid.com>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        Daniel Eischen <deischen@freebsd.org>, "threads@freebsd.org" <threads@freebsd.org>
Subject:   Re: Thinking about kqueue's and pthread_cond_wait
Message-ID:  <7EDE50FA-DE52-46C0-B88A-BCA9CBF934A6@vigrid.com>
In-Reply-To: <20100210200631.GE71374@elvis.mu.org>
References:  <3581A86D-9C9C-4E08-9AD3-CD550B180CED@lakerest.net> <Pine.GSO.4.64.1002101202060.13656@sea.ntplx.net> <3CF3033E-FD13-405B-9DC6-DDE9DF4FBF37@lakerest.net> <Pine.GSO.4.64.1002101232240.13876@sea.ntplx.net> <07AA24BB-DA26-406A-B24F-59E0CB36FEBE@lakerest.net> <Pine.GSO.4.64.1002101331240.14115@sea.ntplx.net> <20100210185746.GC71374@elvis.mu.org> <Pine.GSO.4.64.1002101401460.14317@sea.ntplx.net> <20100210191709.GD71374@elvis.mu.org> <Pine.GSO.4.64.1002101500570.14544@sea.ntplx.net> <20100210200631.GE71374@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 10, 2010, at 3:06 PM, Alfred Perlstein <alfred@freebsd.org>  
wrote:

> * Daniel Eischen <deischen@freebsd.org> [100210 12:01] wrote:
>>
>>
>> I strongly disagree.  Using mutexes and condition variables in the
>> proper way is not as easy as it sounds, let alone trying to mix
>> them as userland thingies into kqueue.
>>
>> I will strongly oppose this...
>
> Well then you "win".  I have no desire to engage in such discussion.
>
> I do hope that when you see this facility leveraged elsewhere for
> an application that you reflect on this conversation and think back
> on it the next time an opportunity presents itself to lead in
> functionality.

Don't misunderstand me, I just don't think running around the tree and  
adapting all the userland leaves to kqueue-isize them is the right  
approach.  IMHO, it's better to extend the kqueue/kevent mechanism to  
allow a generic object to be added to the event list and the kqueue to  
be signaled from userland.  All the pthread and semaphore functions  
are userland operations that also rely on userland structures anyway.

-- 
DE 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7EDE50FA-DE52-46C0-B88A-BCA9CBF934A6>