Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2008 15:02:41 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Lawrence Stewart <lstewart@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: kthread_exit(9) unexpectedness
Message-ID:  <200812031502.42218.jhb@freebsd.org>
In-Reply-To: <4935E4B5.6090204@freebsd.org>
References:  <492412E8.3060700@freebsd.org> <200812021707.41545.jhb@freebsd.org> <4935E4B5.6090204@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 02 December 2008 08:45:25 pm Lawrence Stewart wrote:
> > might even be better to add a dedicated condvar to 'struct thread' in 8.x 
> > that is used for the wakeup and do the wakeup on that rather than the 
thread 
> > pointer to be honest.
> > 
> 
> What are the pros/cons of using mtx_sleep/wakeup vs cv_wait/cv_broadcast?

Forces you to use explicit wait channels as opposed to some of the problems we 
have now with 3-4 places sleeping on proc pointers for example.

-- 
John Baldwin



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