[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 19991229.003] perl 5.005_03 core dumps -- singal
On Tue, Jan 11, 2000 at 05:22:20PM -0500, Dan Sugalski wrote:
> >Why do you thing it is not going to be waiting on a blocking system
> >call most of the time? For many threading paradigms this is exactly
> >what happens.
>
> So we have sync system calls instead spawn off a thread to do the call
> while the spawning thread cond_waits on something. To wake the thread you
> kill the thread doing the syscall and pop a cond_signal to the waiting
> thread. There are other ways, too, of course.
You still think that you can wake something which cond_wait()s from
another thread. And you make things extremely complicated and
extremely unefficient.
> >What made you thingk cond_wait() is not a blocking system call?
>
> What makes you think the cond_wait that I'm thinking of is the one you're
> thinking of? And what makes you think I'm not considering tracking the
> condition and signalling it?
Waking *all* the thread which wait on this?
Ilya
- Follow-Ups from:
-
Dan Sugalski <dan@sidhe.org>
- References to:
-
Dan Sugalski <dan@sidhe.org>
Larry Wall <larry@wall.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Dan Sugalski <dan@sidhe.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]