multithreading concept
Carl J. Van Arsdall
cvanarsdall at mvista.com
Wed Feb 7 19:18:20 EST 2007
S.Mohideen wrote:
> I would like to add my problem in this thread.
> I have a network application in Python which sends and recv using a single
> socket.
> There is a dictionary on which I store/read data values. I want to seperate
> the send and recv functionality on two different processes so that the
> parallel execution becomes fast. Is there any way to do so, so that the
> Dict's consitency is not lost(able to read & write) and also the performance
> improves. I am looking upon the MPI4Py module to see if it does the job for
> me. Any ideas would be appreciated.
>
Well, from your description so far I think that MPI is going to be a bit
of overkill. I think you should consider threads or processors with
shared memory/objects (POSH). Then take a look at a producer/consumer
program to see how it works, that should get you to where you need to go.
HTH
-carl
--
Carl J. Van Arsdall
cvanarsdall at mvista.com
Build and Release
MontaVista Software
More information about the Python-list
mailing list