Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Multi-core loops
- X-seq: zsh-users 14211
- From: Christopher Browne <cbbrowne@xxxxxxxxx>
- To: "Nadav Har'El" <nyh@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Multi-core loops
- Date: Sun, 28 Jun 2009 13:58:07 -0400
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2TXCnlbv/8wWMuudXgHGs4HxmDnGmohk/T1/b7bzfvI=; b=gCdtrJbZVdnQXRxVm9n6kbIUEiOn6TJBHqDlrAEvXvQ1UuHDzR/TsFw9rXP5mGMQ9f /prSjPvp4WkmOxQa9myFvWtKALRTkUvHWwhP3nLaEHwkUPbfZ5tatVi5puZliAdyBZ+j 8NaLlm9rYK/Sr2AOaTLpR+OK+C3ihO5IV0I1c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nRMcV1ZRqad/aTsrQPRNyxQ3HR60PhQNEhU5Xauaf25H7gHNwmWw60WWiNteFGr0tO NU6HdrFSuVGMr+EYKtQowhck1RU5jnFNPsEr/3US9wkQq3Kmaw0VeYYq6r1K8L6hX9eO bhFGNFx4ZZJ/589mycwaWjAj8d0vxBkjCjq8Y=
- In-reply-to: <20090628132555.GA21352@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090628103129.GA15270@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20090628132555.GA21352@xxxxxxxxxxxxxxxxxxxxxxxxxx>
On Sun, Jun 28, 2009 at 9:25 AM, Nadav Har'El<nyh@xxxxxxxxxxxxxxxxxxx> wrote:
> So I think there is definitely a need for such a parallel loop feature.
I totally agree...
There are lots of cases where you don't want to "flood" a destination
with too many concurrent requests, where you might have hundreds or
thousands of items to request, and where
- serializing 1 at a time is too few
- spawning 1000 at a time is too many
- keeping 10 processes busy might be about right
CPU's not the only reason to parallelize; other reasons include:
- network traffic (3 web servers, hence 3 requests at a time)
- I/O (disk array with 12 drives, can support 6 copies at a time)
- DBMS supports 8 connections at a time for your favorite user
--
http://linuxfinances.info/info/linuxdistributions.html
Alfred Hitchcock - "Television has brought back murder into the home
- where it belongs." -
http://www.brainyquote.com/quotes/authors/a/alfred_hitchcock.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author