From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 15 23:12:51 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from localhost.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 5101016A407 for ; Sun, 15 Oct 2006 23:12:51 +0000 (UTC) (envelope-from davidxu@freebsd.org) From: David Xu To: freebsd-hackers@freebsd.org Date: Mon, 16 Oct 2006 07:12:42 +0800 User-Agent: KMail/1.8.2 References: <200610141540.09999.ekkehard.morgenstern@onlinehome.de> <200610150931.44220.davidxu@freebsd.org> <200610151011.53724.ekkehard.morgenstern@onlinehome.de> In-Reply-To: <200610151011.53724.ekkehard.morgenstern@onlinehome.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610160712.42534.davidxu@freebsd.org> Subject: Re: Threading system calls (int 80h) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2006 23:12:51 -0000 On Sunday 15 October 2006 16:11, Ekkehard Morgenstern wrote: > On Sunday 15 October 2006 03:31, David Xu wrote: > > You can use KSE syscalls or THR syscalls, for KSE syscalls you > > should use bound thread, otherwise you have to support > > UPCALLS and other complex things. > > How do I use THR syscalls? Yes, you can use THR syscalls, they are more simple. you can use thr_new to create a thread, and use thr_exit to exit a thread. You can learn how to use them by reading some code in libthr, note, this interfaces are only for thread library implementation, it is not advocated to use them in application. David Xu