Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'wed,': 0.04; 'socket': 0.05; 'happily': 0.07; 'python': 0.07; '+0200,': 0.09; 'correct.': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'bound,': 0.16; 'rachel': 0.16; 'subject:server': 0.16; '\xa0as': 0.16; 'figure': 0.18; '27,': 0.19; 'header:In-Reply-To:1': 0.22; 'received:209.85.214.174': 0.23; 'received:mail-iw0-f174.google.com': 0.23; 'message- id:@mail.gmail.com': 0.28; 'remote': 0.28; 'host': 0.30; 'i/o': 0.31; 'threads': 0.31; 'to:addr:python-list': 0.32; 'quite': 0.36; 'received:209.85': 0.37; 'apr': 0.38; 'subject:skip:p 10': 0.38; 'thread': 0.38; 'received:google.com': 0.38; 'received:209.85.214': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'how': 0.39; 'header:Received:5': 0.40; 'waiting': 0.61; '2011': 0.62; 'spend': 0.63; 'connection.': 0.77; '10:21': 0.84; '\xa0at': 0.84; 'something.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=Av2Vakb5FufDDTkS5H+l4jbUVPdM82kADEOmNnjI6ZM=; b=gk+8ueASoSD1Yr5oSlo23xhz9cqym8TipOlh3ZcwvUaR9V/2qgwtHxfw7E2ydj+m3t QdSJlu0od+sb3lsPKYCWh6Aw+60HE0wwVGCL34z6IiOWu3/QRM4EiSuXOUHg1RTv8/UZ FuPhpPl364DFGyPJLcPNypNZo8TUtPIgQA/8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=uN/l8HfBt0UDNKrjx7fwwbq7vdxRKdmKeD84yNzqQtcNeNRAXnnGfZWQJ9gU/dCPCt SOAymQUHawhMjm84fUbWsfKYbOlhFguE9dnXRHNCfdYz8MZ14+4qML+Ekf0fQmeMR+Wx +EmQfsjeN9ofS+fQmLbDQhEs+g7ASA/KGXwJg= MIME-Version: 1.0 In-Reply-To: <1cel88-0d3.ln1@svn.schaathun.net> References: <8ikj88-bs1.ln1@svn.schaathun.net> <1cel88-0d3.ln1@svn.schaathun.net> Date: Wed, 27 Apr 2011 23:35:06 +1000 Subject: Re: client-server parallellised number crunching From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303911309 news.xs4all.nl 81481 [::ffff:82.94.164.166]:42821 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4132 On Wed, Apr 27, 2011 at 10:21 PM, Hans Georg Schaathun w= rote: > On Wed, 27 Apr 2011 11:35:16 +0200, Thomas Rachel > =A0 w= rote: > : =A0As far as I understand, you acquire a job, send it to a remote host = via > : =A0a socket and then wait for the answer. Is that correct? > > That's correct. =A0And the client initiates the connection. =A0At the > moment, I use one thread per connection, and don't really want to > spend the time to figure out how to do it singlethreadedly. Threads work quite happily in Python if they're I/O bound, which they will be if they're waiting for the client to do something. ChrisA