| Deutsch English Français Italiano |
|
<fcb1f88f53b1a99fae7dc50eaba94f54@www.novabbs.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail From: mitchalsup@aol.com (MitchAlsup1) Newsgroups: comp.arch Subject: Re: Is Parallel Programming Hard, And, If So, What Can You Do About =?UTF-8?B?SXQ/?= Date: Tue, 20 May 2025 22:11:41 +0000 Organization: Rocksolid Light Message-ID: <fcb1f88f53b1a99fae7dc50eaba94f54@www.novabbs.org> References: <vvnds6$3gism$1@dont-email.me> <27492f8028a0d40eff5071e85214fc36@www.novabbs.com> <100gj7t$1sbnn$11@dont-email.me> <QP%WP.57065$RXsc.38723@fx36.iad> <100iher$2b7vi$2@dont-email.me> <jwvcyc3xd2v.fsf-monnier+comp.arch@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="1222847"; mail-complaints-to="usenet@i2pn2.org"; posting-account="o5SwNDfMfYu6Mv4wwLiW6e/jbA93UAdzFodw5PEa6eU"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$i6WAkDBmNSLnOto7WePS1e.nVl8.Yv.G8dMbZ7gm1Qe1OyBMiyV3W X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Posting-User: cb29269328a20fe5719ed6a1c397e21f651bda71 On Tue, 20 May 2025 20:06:13 +0000, Stefan Monnier wrote: >> Personally, I rarely use multi-threading, and when I do, it is usually >> in >> the form of using mutex locks over shared buffers. >> You lock the mutex if needed to copy data from one thread to another; or >> when doing a task that depends on the data being consistent. > > FWIW, I think these kinds of things usually fall in the scope of > concurrency rather than parallelism. When I run 20-copies of a FEM CFD application, each uni-process:: am I running concurrently ?? or in parallel ?? or both ?? Also note: I need to use the "affinity" service under taskMangler so that only 4 processes share a core, performance goes up by roughly 20%. The CFD simulations typically run for 10 hours (each, wall clock time), and every second; dump out a dozen KB of compressed data (each). The disk load is low enough I can do other "stuff" on the computer as long as I affinitize the heavy loads to 5 of the 6 cores. > > > Stefan