From owner-freebsd-hackers Fri Aug 25 0:38: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id 5AF6837B424 for ; Fri, 25 Aug 2000 00:37:58 -0700 (PDT) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id AAA16934 for ; Fri, 25 Aug 2000 00:36:51 -0700 (MST) Received: from 207-218-69-66.nas-1.OBT.primenet.com(207.218.69.66), claiming to be "foo.fake.primenet.com" via SMTP by smtp03.primenet.com, id smtpdAAAv4aWcH; Fri Aug 25 00:36:47 2000 Received: from localhost (bkogawa@localhost) by foo.fake.primenet.com (8.9.3/8.8.8) with SMTP id AAA76521 for ; Fri, 25 Aug 2000 00:37:38 -0700 (PDT) (envelope-from bkogawa@primenet.com) X-Authentication-Warning: foo.fake.primenet.com: bkogawa owned process doing -bs Date: Fri, 25 Aug 2000 00:37:38 -0700 (PDT) From: "Bryan K. Ogawa" X-Sender: bkogawa@foo.fake.primenet.com To: hackers@freebsd.org Subject: Document about threads Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey all, I have been trying to port some code to FreeBSD which currently runs under Linux (and to some degree, Solaris). Since I'm a longtime FreeBSD user, I'm pretty excited to get a chance to port to FreeBSD. The program I'm working on uses both POSIX threads and ISO C++ (including templates, exceptions, etc.), so I needed information about the current state of such things under FreeBSD. However, there wasn't any "one-stop" documentation I could find about the current state of everything. As a result, I ended up writing a brief text document which describes what I found out about threads (C++ and threads is only mentioned briefly). If anyone who knows about the state of the FreeBSD threads implementation could go through it and check it for factual errors, missing bits, etc. then that would be great. Included at the end of the document is a little bit about the planned implementation using scheduler activations for -CURRENT, but that section is almost totally just posts copied from the mailing list archives. I would be happy to contribute this information to the Documentation project if that would be preferable. The URL for the document is http://www.idiom.com/~bko/bsd/freebsd-threads.txt A few quick questions: 1. I had seen an email in the mailing list archives which asserted that C++ exceptions have been broken since August 1999 in the multithread case -- does anyone know what the status in 4.1-STABLE and -CURRENT are? I've managed to get the code to compile under FreeBSD, but it crashes quite rapidly after this, and I'm wondering if it's because of an exception being thrown. This is under 4.1-RELEASE. 2. Sometimes, the programs crash at startup, but not always. I seem to recall a recent discussion about the loader not being multi-thread safe -- was this fixed in time for 4.1-RELEASE ? Thanks, -- bryan k ogawa http://www.primenet.com/~bkogawa/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message