> 
> 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)





_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to