From owner-freebsd-current@FreeBSD.ORG Fri Nov 10 15:13:26 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E11B416A407 for ; Fri, 10 Nov 2006 15:13:26 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 5FFEB43D53 for ; Fri, 10 Nov 2006 15:13:21 +0000 (GMT) (envelope-from quetzal@zone3000.net) Received: from unknown (HELO localhost) (217.144.69.37) by 209.67.61.254 with SMTP; 10 Nov 2006 15:13:16 -0000 Date: Fri, 10 Nov 2006 17:12:47 +0200 From: Nikolay Pavlov To: freebsd-current@freebsd.org Message-ID: <20061110151247.GA64530@zone3000.net> Mail-Followup-To: Nikolay Pavlov , freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.1-RELEASE-p10 Subject: libpthread vs libthr. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 15:13:27 -0000 Hi. In this post i am not trying to raise a discussion about teoretical advantages of some special threading model, but still i would like to figure out why libthr in it current state is not our default posix thread library and could it be so in time of 7-STABLE? As a user and administrator of FreeBSD i want to mention some benefits of libthr: 1. It's simpler. 2. It's stable and has been used by many of us for a long time. 3. It proved to be very productive on real world applications. 4. It has active talented developers. 5. If it was a default library it would couse a incrase of users feedback which would lead to futher improvement of it's code by the time 7 becomes a stable branch. And some flaws of libpthread: 1. It's more difficult. 2. It's slow in compare of libthr. 3. The last, but the worst. IMHO the position under which libpthread is the library by default is the source of a bad myth that threading model in FreeBSD sucks and threading applications is slow. If 7.0 had libthr as a default posix threads library we could brake that belief. This point of view may seem one-sided that is why someone with good knowledge of the current state of code could tell other pros and cons of both libraries. Another interesting question is which of the libraries will better work with multikernel and multiprocessor systems which will be very popular by the time 7.0 branch launches its stable releases. -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================