From owner-freebsd-threads@FreeBSD.ORG Sun Mar 18 19:43:13 2007 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4E4C16A403; Sun, 18 Mar 2007 19:43:13 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 4A50913C43E; Sun, 18 Mar 2007 19:43:13 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup175.ach.sch.gr [81.186.70.175]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l2IJW71h009603 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 18 Mar 2007 21:32:19 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l2IJW0eg075952; Sun, 18 Mar 2007 21:32:01 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l2IDn12A007455; Sun, 18 Mar 2007 15:49:01 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 18 Mar 2007 15:49:01 +0200 From: Giorgos Keramidas To: Kip Macy Message-ID: <20070318134900.GA98260@kobe.laptop> References: <45F906ED.8070100@aueb.gr> <200703151827.39963.max@love2party.net> <20070318053307.GC73385@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.425, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.30, BAYES_00 -2.60, DATE_IN_PAST_03_06 0.48, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Max Laier , freebsd-threads@freebsd.org, freebsd-arch@freebsd.org Subject: Re: Multithreaded qsort(3) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Mar 2007 19:43:14 -0000 On 2007-03-17 23:43, Kip Macy wrote: > Reminds me of how Solaris blindly uses vfork for implementing > system(3). It was very easy for a naive user (me) to call system from > a multi-threaded python application. I had numerous failures that were > impossible to track back to system(3). It seems like an 'obvious' optimization, though. vfork() will block the parent process until the child runs exec(), and the whole purpose of system is to exec() a shell and run an external command. Can you elaborate on the problems you were seeing? It sounds like something both interesting and educational :)