From owner-freebsd-questions@FreeBSD.ORG Fri Mar 11 11:00:32 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BBCD16A4CE for ; Fri, 11 Mar 2005 11:00:32 +0000 (GMT) Received: from yggdrasil.interstroom.nl (yggdrasil.interstroom.nl [80.85.129.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EFBF43D5A for ; Fri, 11 Mar 2005 11:00:31 +0000 (GMT) (envelope-from o.greve@axis.nl) Received: from ip127-180.introweb.nl ([80.65.127.180] helo=[192.168.1.42]) by yggdrasil with asmtp (Exim 3.35 #1 (Debian)) id 1D9hsT-0007lt-00; Fri, 11 Mar 2005 12:00:21 +0100 Message-ID: <42317A52.3080903@axis.nl> Date: Fri, 11 Mar 2005 12:00:34 +0100 From: Olaf Greve User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <001c01c5001f$a8fce7a0$7e35c2cb@mafxp> <42301918.5020200@axis.nl> <20050310155458.GE9663@dan.emsphone.com> In-Reply-To: <20050310155458.GE9663@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner-Information: Interstroom virusscan, please e-mail helpdesk@interstroom.nl for more information X-MailScanner-SpamCheck: cc: questions@freebsd.org Subject: Re: Native POSIX threads + Java under FreeBSD 5.3 release i386 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 11:00:32 -0000 Dear Dan, Thanks for your answer! A follow-up: > Why would they require an OS-specific threads library, instead of > simply requiring Posix threads? I can tell you right now that Solaris > doesn't support NPTL, just the same way Linux doesn't support Solaris's > thread library :) Interesting. The people who wrote the software told me that they used to have a version that worked well with the Linux 2.4 kernel threads version. Then, they said they had improved their software, and that it's based around the threading system as it is present in the Linux 2.6 kernel. They did indeed mention that we require Posix threads, so I guess they mean to say that we require Posix threads (rather than relying on a Linux 2.6 kernel perse). > If you have limited time, I'd say just use either Solaris 10 or Linux. > If you have problems on FreeBSD, they won't help you. Yes, I just called the client, and he strongly recommended simply looking for a Debian-9 or SuSe-9 system. I think I'll simply try that... >>I'm looking somewhat into the support for NPTL under FreeBSD 5.3 >>release i386, and I have come across the following URL: >>http://www.unobvious.com/bsd/freebsd-threads.html From this, it >>sounds like the LinuxThreads (i.e. >>/usr/ports/devel/linuxthreads) should do the trick. > > > That page is 2 years old, and even says right in the middle, before > comparing libc_r and linuxthreads: > > WARNING: The rest of this document does not describe thread support > in FreeBSD 5.x . You have been warned. :) I think I didn't express myself the way I meant to (sorry for that). Basically what I meant to write was that from the document I gathered that the /usr/ports/devel/linuxthreads port is what should be used. But indeed upon re-reading my own text, it suggests that I had gathered from the document that that would work under versions 5.x as well (which was not what I meant to imply). Anyway, your following answer basically answers what I wanted to know: >>Can anyone tell me something about the following: >>1) Does the linuxthreads library provide 100% NPTL support, as under Linux? > > Linuxthreads is the Linux 2.4 and below threads package. NPTL is the > name for the threads implementation in Linux 2.6 kernels. As far as I > know, linuxthreads and NPTL are relatively ABI-compatible. From this, I gather the linuxthreads port will not give me the threading system as used in the Linux 2.6 kernel then... O.k., I think I know enough for now: I'll first try having a go at Red Hat or SuSe then.... Thanks again, and cheers! Olafo