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.
----- Original Message ----- From: "Sergei Organov" <[EMAIL PROTECTED]> To: <python-list@python.org> Sent: Wednesday, February 07, 2007 1:03 PM Subject: Re: multithreading concept > "sturlamolden" <[EMAIL PROTECTED]> writes: >> On Feb 7, 6:17 pm, John Nagle <[EMAIL PROTECTED]> wrote: > [...] >> MPI does not use threads on SMPs because it performs worse than using >> multiple processes. > > I fail to see how threads in general could perform worse than > processes. I do understand that processes are inherently more > safe/secure, but when it comes to speed I really can't imagine why it > could happen that threads perform worse (poor threads implementation and > programming practices aside). Care to give some references? > > -- Sergei. > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list