From owner-freebsd-threads@FreeBSD.ORG Fri Jul 11 07:24:30 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F63537B401 for ; Fri, 11 Jul 2003 07:24:30 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 783BB43FBD for ; Fri, 11 Jul 2003 07:24:29 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h6BEONAI004689; Fri, 11 Jul 2003 10:24:23 -0400 (EDT) Date: Fri, 11 Jul 2003 10:24:23 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Andrew Gallatin In-Reply-To: <16142.50418.692392.183187@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: dumb KSE question X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2003 14:24:30 -0000 There's no such thing as a dumb question... On Fri, 11 Jul 2003, Andrew Gallatin wrote: > > We have a driver which will block a thread in a cv_timewait_sig() > after it calls into driver via an ioctl. Under libc_r, this will > naturally block the entire process until the driver wakes it up via a > cv_signal(). > > I assume that with KSE, the UTS will schedule another thread to run as > a result of calling the cv_timewait_sig()? Ie, it won't block the > entire process? That's a dumb question :-) All joking aside, it is suppose to make a callback into the UTS so another thread can run and shouldn't block the process. It will be automatic and your driver does not need to do anything special. -- Dan Eischen