Threading system calls (int 80h)
Marco van de Voort
marcov at stack.nl
Mon Oct 16 05:13:24 PDT 2006
>
> 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?
(digging deep into memory)
Have a look how the linuxator emulates the clone() syscall with (IIRC)
rfork. A limited route, but iirc it works.
The Free Pascal 1.0 compiler (2000) uses this for a form of threading (4.x
though, and 2.0+ uses pthreads)
More information about the freebsd-hackers
mailing list