realbasic-nug
[Top] [All Lists]

Re: Dealing with multi-processor or multi-core

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Dealing with multi-processor or multi-core
From: James Sentman <james at sentman dot com>
Date: Fri, 30 May 2008 14:27:22 -0400
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <p06240802c4657bd7c318 at 62 dot 161 dot 36 dot 122> <41B4C50C-AB85-4975-B2AE-C6A4DD49D787 at inspiringapps dot com> <48400D8C dot 7090301 at chrononomicon dot com> <0FE2A07A-841A-4C6A-92A8-878E7F9CEEBB at inspiringapps dot com> <77124270805301112ja025ec1i5295f790cf52d33b at mail dot gmail dot com> <A05D221B-75B8-4EBA-9ABC-BF8CB8008802 at great-white-software dot com>
On May 30, 2008, at 2:17 PM, Norman Palardy wrote:

>>
>> Sounds attractive, but then what is the best way to pass/retrieve  
>> data
>> to/from such processes, short of writing/reading files which may
>> defeat the
>> speed advantage of multiple cores?
>
> IPCSockets

or... as I already suggested ;), on the Mac side you can use the  
notification center to send messages between processes. And even send  
whole dictionaries with your data keyed appropriately so that you do  
not need to develop a protocol for sending data through a simple  
stream. That usually isn't that big a deal, but can be a bottle neck  
if you need to send a lot of it or very quickly.

http://www.monkeybreadsoftware.de/pluginhelp/class-notificationcentermbs.shtml

That can almost certainly be done with declares now, but Christian has  
it all wrapped up there nicely.

Thanks,
James


James Sentman                       http://sentman.com          
http://MacHomeAutomation.com



_______________________________________________
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>