From owner-freebsd-threads@FreeBSD.ORG Thu Feb 10 03:12:22 2005 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 E29C016A4CE for ; Thu, 10 Feb 2005 03:12:22 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EB4243D4C for ; Thu, 10 Feb 2005 03:12:22 +0000 (GMT) (envelope-from pwillia@insightbb.com) Received: from toshib (12-222-105-121.client.insightbb.com[12.222.105.121]) by sccimhc91.asp.att.net (sccimhc91) with SMTP id <20050210031221i9100khq9ae>; Thu, 10 Feb 2005 03:12:21 +0000 From: "Paul Williams" To: Date: Wed, 9 Feb 2005 22:12:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcUHjMFQDRt3Y9MRQp29zR4QJEz+twHj+jUA In-Reply-To: <20050131120054.AF4DE16A51F@hub.freebsd.org> Message-Id: <20050210031222.8EB4243D4C@mx1.FreeBSD.org> Subject: Question about the use of KSE 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: Thu, 10 Feb 2005 03:12:23 -0000 Hello, I'm trying to make use of capabilities KSE threads offer over standard pthreads, for example that upcalls allow for the use of blocking system calls without blocking the entire application. I've searched extensively for example code on how to best use KSE (libpthread.so.1 in a 6-CURRENT system), and the only source I can find is the test code in the kernel source (the two test case userland threading schedulers). I see in the source for libpthread that there seems to be an UTS in the library, but I haven't been able to figure out how to initialize and use it. The KSE man page seems to imply that all that's necessary is to call kse_create(), but based upon the UTS sample code I've found there seems to be a lot more work involved. Can anyone provide links to more information on how to best use KSE, preferably including some example source? Thank you, Paul Williams