From owner-freebsd-hackers Sat Sep 9 5:52:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from guardian.hermes.si (guardian.hermes.si [193.77.5.150]) by hub.freebsd.org (Postfix) with ESMTP id 664DE37B422 for ; Sat, 9 Sep 2000 05:52:08 -0700 (PDT) Received: from hermes.si (primus.hermes.si [193.77.5.98]) by guardian.hermes.si (8.9.3/8.9.3) with ESMTP id OAA17744 for ; Sat, 9 Sep 2000 14:52:04 +0200 (METDST) Received: (from uucp@localhost) by hermes.si (8.9.3/8.9.3) id OAA10250 for ; Sat, 9 Sep 2000 14:52:02 +0200 Received: from lamu.hermes.si(10.17.1.230) by primus.hermes.si via smap (V2.1) id xma010002; Sat, 9 Sep 00 14:51:28 +0200 Received: (from mitja@localhost) by lamu.hermes.si (8.9.3/8.9.3) id OAA25888 for freebsd-hackers@freebsd.org; Sat, 9 Sep 2000 14:51:18 +0200 (CEST) Date: Sat, 9 Sep 2000 14:51:18 +0200 From: Mitja Horvat To: freebsd-hackers@freebsd.org Subject: Re: makecontext & friends ? Message-ID: <20000909145118.A25823@lamu.hermes.si> References: <20000908161542.A87619@engelschall.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20000908161542.A87619@engelschall.com>; from rse@engelschall.com on Fri, Sep 08, 2000 at 04:15:42PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, > 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. > I read your paper and it describes the very same technique I was planning to implement, but the trick with sigaltstack() seems very ugly to me. That's why I poked around Solaris' man pages and found ucontext(3) functions. Anyway since you already have done all the work, it's pointless for me to reinvent the wheel. Besides this, GNU Pth is certainly more tested than my solution would ever be. Well, next time I should check for GNU stuff before I plan doing something. > If you need maximum portability, then GNU Pth certainly is an option for > you. I will definitely use it. Thank you for this great software... ! Regards, Mitja To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message