multithreading concept
S.Mohideen
moin at blackhole.labs.rootshell.ws
Fri Feb 9 10:00:36 EST 2007
I am sorry if I sound foolish.
Suppose I split my Net application code using parallel python into several
processes based upon the number of CPU available. That means a single socket
descriptor is distributed across all processes. Is parallelity can be
acheived using the processes send/recv on the single socket multiplexed
across all the processes.. I haven't tried it yet - would like to have any
past experience related to this.
----- Original Message -----
From: "Carl J. Van Arsdall" <cvanarsdall at mvista.com>
To: <python-list at python.org>
Sent: Thursday, February 08, 2007 3:44 PM
Subject: Re: multithreading concept
> Bjoern Schliessmann wrote:
>> [snip]
>> What makes you think that'll be faster?
>>
>> Remember:
>> - If you have one CPU, there is no parallelity at all.
>> - If you do have multiple CPUs but only one network device, there is
>> no parallel networking.
>>
>>
> Not necessarily, if he's on a full duplex ethernet connection, then
> there is some parallelity he can take advantage of. He has upstream and
> downstream.
>
> -c
>
> --
>
> Carl J. Van Arsdall
> cvanarsdall at mvista.com
> Build and Release
> MontaVista Software
>
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list