Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2006 07:12:42 +0800
From:      David Xu <davidxu@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Threading system calls (int 80h)
Message-ID:  <200610160712.42534.davidxu@freebsd.org>
In-Reply-To: <200610151011.53724.ekkehard.morgenstern@onlinehome.de>
References:  <200610141540.09999.ekkehard.morgenstern@onlinehome.de> <200610150931.44220.davidxu@freebsd.org> <200610151011.53724.ekkehard.morgenstern@onlinehome.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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