From owner-freebsd-threads@FreeBSD.ORG Wed Jul 9 09:49:28 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3ACE37B401; Wed, 9 Jul 2003 09:49:28 -0700 (PDT) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0B7143F93; Wed, 9 Jul 2003 09:49:27 -0700 (PDT) (envelope-from kai.mosebach@freshx.de) Received: from alpha (p508B29F1.dip.t-dialin.net [80.139.41.241]) by dust.freshx.de (Postfix) with ESMTP id 07E1115E10E; Wed, 9 Jul 2003 18:49:19 +0200 (CEST) From: "Kai Mosebach" To: Date: Wed, 9 Jul 2003 18:49:25 +0200 Message-ID: <001b01c3463a$0f907a00$0100a8c0@alpha> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: Importance: Normal cc: freebsd-threads@freebsd.org Subject: AW: LinuxThreads replacement X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 16:49:29 -0000 Currently, im porting the SapDB (www.sapdb.org) to FreeBSD (www.komadev.de/sapdb), which makes heavy use of the lthreads, but 1.) isnt running stable on 5.1 (not sure whether its a lthreads problem) 2.) is not the fastest (i guess) 3.) has more (especially memory) overhead for example, for on database instance, there are about 80 (lthread) processes hanging around. So i thought of a simple complete recompiling. Would you more likely use libthr or libkse,=20 as kse is not complete yet, isnt it ? regards -----Urspr=FCngliche Nachricht----- Von: Daniel Eischen [mailto:eischen@vigrid.com]=20 Gesendet: Mittwoch, 9. Juli 2003 18:42 An: Kai Mosebach Cc: freebsd-threads@freebsd.org Betreff: Re: LinuxThreads replacement On Wed, 9 Jul 2003, Kai Mosebach wrote: > Hi, >=20 > can libthr / libkse easily be used as a liblthreads (LinuxThreads) > replacement ? I would doubt that you'd be able to copy (or use libmap.conf) libthr/libkse over liblthreads. I suspect that the mutex types (and perhaps others) may be implemented differently so that their sizes are incompatible. For instance, if linuxthreads defines pthread_mutex_t as a struct, that wouldn't work when FreeBSD defines them to be pointers to structs. Actually, maybe that would work since the FreeBSD types are not greater in size. But there are other possible problems -- pthread_cleanup_push() implemented as macros in linuxthreads for one. On the other hand, if you want to recompile something that currently uses linuxthreads, it should work using one of our thread libraries. --=20 Dan Eischen