Threading system calls (int 80h)

David Xu davidxu at freebsd.org
Sat Oct 14 18:31:53 PDT 2006


On Sunday 15 October 2006 09:26, Ekkehard Morgenstern wrote:
> On Sunday 15 October 2006 01:32, David Xu wrote:
> > You are going to be unable to use libc if you create raw thread in your
> > program, libc uses pthread APIs, if you create a raw thread, your
> > program will crash if you use any libc function which needs pthread
> > interface.
>
> I don't want to link to libc. So, how do I create a raw thread?

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. 

David Xu



More information about the freebsd-hackers mailing list