Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2006 14:08:59 +0200 (CEST)
From:      marcov@stack.nl (Marco van de Voort)
To:        Ekkehard Morgenstern <ekkehard.morgenstern@onlinehome.de>
Cc:        freebsd-hackers@freebsd.org, David Xu <davidxu@freebsd.org>
Subject:   Re: Threading system calls (int 80h)
Message-ID:  <20061016120859.E146C2287D@snail.stack.nl>
In-Reply-To: <200610150326.03279.ekkehard.morgenstern@onlinehome.de>

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








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