realbasic-nug
[Top] [All Lists]

Re: Dealing with multi-processor or multi-core (shared memory semi solut

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Dealing with multi-processor or multi-core (shared memory semi solution)
From: Charles Yeomans <charles@declareSub.com>
Date: Tue, 3 Jun 2008 11:34:14 -0400
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces@lists.realsoftware.com designates 66.116.103.65 as permitted sender) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
Delivered-to: realbasic-nug@lists.realsoftware.com
In-reply-to: <77124270806030820m6a050ac9j99ea2f3b3e6667e6@mail.gmail.com>
References: <77124270805301112ja025ec1i5295f790cf52d33b@mail.gmail.com> <BAY107-DAV13E1BCBA0B8DD7A3965E3D93BE0@phx.gbl> <77124270805301302v4b6f531by1501155ebce893f@mail.gmail.com> <298EE353-3AE8-4792-B9D1-2E199601FBFE@mac.com> <eb8fc1930805312018n3049a9b4s980a5622b150a1d9@mail.gmail.com> <77124270806030820m6a050ac9j99ea2f3b3e6667e6@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Jun 3, 2008, at 11:20 AM, Peter K. Stys wrote:

> On Sat, May 31, 2008 at 9:18 PM, dda <headspin@gmail.com> wrote:
>
>> "multi-processor" and "shared" in the same sentence is a recipe for
>> pain and disaster. Erlang avoids this by sharing nothing, and instead
>> sending data ["messages"] between processes. Using IPC sockets and
>> sending messages, àla Erlang, will eliminate the need to implement
>> locks and save a lot of hair.
>>
>
>
> but what if you have large datasets to process, a frequent reason  
> for doing
> MP in the first place?  Passing the data back and forth may negate the
> benefits of having several processors chew on the data in parallel.


That's right, and it's part of the analysis when deciding whether to  
parallelize a computation.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>