From: Urs Thuermann <urs@isnogud.escape.de>
To: linux-smp@vger.kernel.org
Subject: Keeping all CPUs busy
Date: 13 Aug 2003 21:17:39 +0200 [thread overview]
Message-ID: <m2d6f9qsdo.fsf@isnogud.escape.de> (raw)
I sometimes run many CPU-intensive processes in a loop like this
for f in *; do lame -h $f ${f/wav/mp3}; done
However, this will run only one process at a time. Executing all
processes in the background would execute them all at the same time.
Is there an easy way to run n processes at time, when you have n CPUs?
On could of course write an Makefile and run make -j2, but I'd like to
know I there is a simpler way without Makefile or something like that.
urs
next reply other threads:[~2003-08-13 19:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-13 19:17 Urs Thuermann [this message]
2003-08-13 19:42 ` Keeping all CPUs busy Jeff Woods
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2d6f9qsdo.fsf@isnogud.escape.de \
--to=urs@isnogud.escape.de \
--cc=linux-smp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.