> On Mon, 2002-03-18 at 19:28, Rusty Russell wrote:
>
> > What do you WANT in a kernel primitive then? Given that we now have mutexes,
> > what else do we need to make pthreads relatively painless?
>
> I think wrt to the mutexes only wake-all is missing. I don't think that
> semaphore semantic is needed in the kernel.
And have all the waiters exit with errno = EAGAIN? ("You didn't get it but
someone wanted you all woken").
It can be done, I'd have to see if is sufficient to implement pthreads.
Rusty.
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/