From owner-freebsd-threads@FreeBSD.ORG Tue Jun 17 15:28:29 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 C794B37B401; Tue, 17 Jun 2003 15:28:29 -0700 (PDT) Received: from sccrmhc12.attbi.com (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id B712A43F75; Tue, 17 Jun 2003 15:28:28 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (sccrmhc12) with ESMTP id <200306172228270120099rkne>; Tue, 17 Jun 2003 22:28:27 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA31459; Tue, 17 Jun 2003 15:28:26 -0700 (PDT) Date: Tue, 17 Jun 2003 15:28:26 -0700 (PDT) From: Julian Elischer To: deischen@freebsd.org In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Sergey Kosyakov cc: freebsd-threads@freebsd.org Subject: Re: The first kse_create call X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 22:28:30 -0000 On Tue, 17 Jun 2003, Daniel Eischen wrote: > > Hi, > > > > I'm trying to run simple program with kse. As I understood the very > > first kse_create call does not create KSE but just assigns the mailbox > > to the existing "default" KSE and makes upcall. May be I'm doing > > something wrong, > > but I never got upcall on the first kse. When I create another KSE (and > > another KSE group) I immediatelly get the upcall for this (second) KSE. > > Just interesting how does it work - may be the first KSE has special > > behavior? > > This is the correct behavior. The first kse_create() does not > generate an immediate upcall. It only flags the current context > as being a KSE. An upcall in this initial KSE will take place > under the same conditions as other KSEs (KSE mailbox has a thread > mailbox pointer and thread blocks, quantum expires, etc). > Subsequent kse_create() calls will generate upcalls immediately > (well, at the mercy of the kernel scheduler). Wellll, the kse_create() will not upcall, but the new kse that is created will upcall. The kse_create() call will just return to the original thread. > > -- > Dan Eischen > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >