In article <[EMAIL PROTECTED]> you wrote:

> are there any plans to implement makecontext() & friends
> functions in FreeBSD? 

I don't know of any plans myself, but I would appreciate that we support this
standardized ucontext(3) API in FreeBSD. The API is actually not the problem,
the question is on what should this API internally be based? On an own
mechanism or on an existing mechanism (jmp_buf, etc)?

> Is there any other way to implement user-level threads?
> (I know it can be done in assembler, but this is not 
> portable)

Sure, it can. See my GNU Portable Threads under
http://www.gnu.org/software/pth/. We have a port under devel/pth,
too. It bases its user-land threads on ucontext(3) if available or on
setjmp(3)'s jmp_buf, etc. All without any assembler things. For details
read my USENIX paper under http://www.gnu.org/software/pth/rse-pmt.ps.

> Using pthreads is not an option for me, although pthreads
> are implemented as userlevel threads in FreeBSD, but not
> on most other Unixes.

If you need maximum portability, then GNU Pth certainly is an option for
you.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to