Threading system calls (int 80h)

David Xu davidxu at freebsd.org
Sun Oct 15 16:12:51 PDT 2006


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


More information about the freebsd-hackers mailing list