Re: [BLACKBOX] multiprocessing and CommStreams

From: [at]} <Werner>
Date: Wed, 17 Mar 2010 15:16:49 +0100

----boundary-LibPST-iamunique-421068693_-_-
Content-type: text/plain

Hello Andrew,

> I have a computationally intense simulation that is embarrisingly
> parallel. So I would like to be able to run
> multiple copies of the software on multiple processors / cores. At present I
> issue instructions to each copy
> of the software by writing to files. This is a bit clumsy. I wunder if
> anyone has used module CommStreams
> to communicate between seperate BB software processes?

Yes, we do this for our Web-Server.

You need:
- Services.Action
- Listener
- Connection

The Listener is read periodically via Services.Action.

Need code?

Download the Framework:

http://www.o3-software.de/files/O3-WAF_GPL_090918.zip

Have a look at
O3bbWebDispatcher
O3bbWebSniffer

should give enough inspiration




mit freundlichen Grüssen

Werner Braun

Mobil +49 (0)178 145 8768 * Fon +49 (0)431 556 8907-1 * Fax +49 (0)431 556 8907-9

O³ Software GmbH & Co. KG * Franziusallee 131 * D-24148 Kiel * Germany
Sitz der Gesellschaft Kiel * HR Amtsgericht Kiel HRA 6418 KI
Persönlich haftende Gesellschafterin O³ Software GmbH * HR Amtsgericht Kiel HRB 10335 KI * Geschäftsführer Werner Braun


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-421068693_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBs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u
emlwXHBhcg0KXHBhcg0KSGF2ZSBhIGxvb2sgYXRccGFyDQpPM2JiV2ViRGlzcGF0Y2hlclxwYXIN
Ck8zYmJXZWJTbmlmZmVyXHBhcg0KXHBhcg0Kc2hvdWxkIGdpdmUgZW5vdWdoIGluc3BpcmF0aW9u
XHBhcg0KXHBhcg0KXHBhcg0KXHBhcg0KXHBhcg0KbWl0IGZyZXVuZGxpY2hlbiBHclwnZmNzc2Vu
XHBhcg0KXHBhcg0KV2VybmVyIEJyYXVuXHBhcg0KXHBhcg0KTW9iaWwgKzQ5ICgwKTE3OCAxNDUg
ODc2OCAqIEZvbiArNDkgKDApNDMxIDU1NiA4OTA3LTEgKiBGYXggKzQ5ICgwKTQzMSA1NTYgODkw
Ny05XHBhcg0KXHBhcg0KT1wnYjMgU29mdHdhcmUgR21iSCAmIENvLiBLRyAqIEZyYW56aXVzYWxs
ZWUgMTMxICogRC0yNDE0OCBLaWVsICogR2VybWFueVxwYXINClNpdHogZGVyIEdlc2VsbHNjaGFm
dCBLaWVsICogSFIgQW10c2dlcmljaHQgS2llbCBIUkEgNjQxOCBLSVxwYXINClBlcnNcJ2Y2bmxp
Y2ggaGFmdGVuZGUgR2VzZWxsc2NoYWZ0ZXJpbiBPXCdiMyBTb2Z0d2FyZSBHbWJIICogSFIgQW10
c2dlcmljaHQgS2llbCBIUkIgMTAzMzUgS0kgKiBHZXNjaFwnZTRmdHNmXCdmY2hyZXIgV2VybmVy
IEJyYXVuXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEg
bWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9C
RVJPTi5DSH19ACgGAAAaAAAAHgw
----boundary-LibPST-iamunique-421068693_-_---
Received on Wed Mar 17 2010 - 15:16:49 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:34 UTC