471,354 Members | 1,704 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Ipc mechanisms and designs.

Hi,

inspired of the topic "The Future of Python Threading", i started to
realize that the only way to utilize the power of multiple cores using
Python, is spawn processes and "communicate" with them.

If we have the scenario:

1. Windows (mainly) development
2. Processes are running in the same machine
3. We just want to "pass" info from one process to another. Info may
be simple data types or user defined Python objects.

what is the best solution (besides sockets) that someone can implement
so to have 2 actually processes that interchanged data between them ?
I looked at Pyro and it looks really good but i wanted to experiment
with a simpler solution.

Aug 10 '07 #1
3 1170
king kikapu <ab********@panafonet.grwrote:
Hi,

inspired of the topic "The Future of Python Threading", i started to
realize that the only way to utilize the power of multiple cores using
Python, is spawn processes and "communicate" with them.

If we have the scenario:

1. Windows (mainly) development
2. Processes are running in the same machine
3. We just want to "pass" info from one process to another. Info may
be simple data types or user defined Python objects.

what is the best solution (besides sockets) that someone can implement
so to have 2 actually processes that interchanged data between them ?
I looked at Pyro and it looks really good but i wanted to experiment
with a simpler solution.
Check out <http://www.lindaspaces.com/products/NWS_overview.html>
Alex
Aug 10 '07 #2
In article <11**********************@x40g2000prg.googlegroups .com>,
king kikapu <ab********@panafonet.grwrote:
Hi,

inspired of the topic "The Future of Python Threading", i started to
realize that the only way to utilize the power of multiple cores using
Python, is spawn processes and "communicate" with them.

If we have the scenario:

1. Windows (mainly) development
2. Processes are running in the same machine
3. We just want to "pass" info from one process to another. Info may
be simple data types or user defined Python objects.

what is the best solution (besides sockets) that someone can implement
so to have 2 actually processes that interchanged data between them ?
I looked at Pyro and it looks really good but i wanted to experiment
with a simpler solution.
Hi King Kikapu
There's a shared memory module for Python, but it is *nix only, I'm
afraid. I realize you said "mainly Windows" but this module seems to do
what you want so maybe you can work out a creative solution.

http://NikitaTheSpider.com/python/shm/

Good luck with whatever you choose

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Aug 10 '07 #3
On Aug 10, 10:33 pm, Nikita the Spider <NikitaTheSpi...@gmail.com>
wrote:
In article <1186760055.658942.116...@x40g2000prg.googlegroups .com>,
king kikapu <aboudou...@panafonet.grwrote:

Hi King Kikapu
There's a shared memory module for Python, but it is *nix only, I'm
afraid. I realize you said "mainly Windows" but this module seems to do
what you want so maybe you can work out a creative solution.

http://NikitaTheSpider.com/python/shm/

Yes, i am currently developing mainly on windows but a cross-platform
solution would surely interests me. I will check it out this!

@Alex: Thanks, it looks very-very interesting...
Aug 11 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

145 posts views Thread by Mark Johnson | last post: by
reply views Thread by service0073 | last post: by
8 posts views Thread by Prisoner at War | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.