From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 97FB7BC0A for ; Mon, 4 Jun 2007 17:34:52 +0200 (CEST) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l54FYp92012396 for ; Mon, 4 Jun 2007 17:34:52 +0200 Received: from [192.168.0.104] (12-208-242-210.client.mchsi.com[12.208.242.210]) by sccmmhc92.asp.att.net (sccmmhc92) with SMTP id <20070604153450m9200dacb6e>; Mon, 4 Jun 2007 15:34:50 +0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <200706041156.16521.jon@ffconsultancy.com> References: <200706041156.16521.jon@ffconsultancy.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <67BC38F1-55DA-46F6-B35E-E728F7B1154B@valdosta.edu> Content-Transfer-Encoding: 7bit From: Jonathan Bryant Subject: Re: [Caml-list] Faking concurrency using Unix forks and pipes (ray tracing results) Date: Mon, 4 Jun 2007 11:33:26 -0400 To: caml-list@yquem.inria.fr X-Mailer: Apple Mail (2.752.3) X-Miltered: at discorde with ID 4664311B.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; forks:01 arrays:01 2007,:98 unix:01 wrote:01 caml-list:01 tracing:01 short:01 concurrency:02 element:03 pipes:04 fork:05 fork:05 implement:06 jun:09 On Jun 4, 2007, at 6:56 AM, Jon Harrop wrote: > > When you apply this map to an array, a new process is forked for > each element. > As forking is time consuming, you should only apply this to short > arrays. It might be worth your while to implement a process pool. I said before that I fork of one base process from which to fork the others, and it's not possible to make that process just a controller for a pool of waiting processes. --Jonathan