Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35146

Re: Problem with Threads

Date 2012-12-19 13:23 -0500
From Dave Angel <d@davea.name>
Subject Re: Problem with Threads
References <0c84b88a-bb71-4ccd-bd96-a3a3414a8e6b@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1067.1355941437.29569.python-list@python.org> (permalink)

Show all headers | View raw


On 12/19/2012 12:11 PM, Kwnstantinos Euaggelidis wrote:
> I have this code for Prime Numbers and i want to do it with Threads.. Any idea.??

Why do you want to do it with threads?  Is it to speed up the
processing? (Guessing that partly because of your printing "elapsed
time."  Chances are running this code in multiple threads will be
substantially slower.

If you want speed, you could speed up the algorithm by a few orders of
magnitude.  Ask for suggestions.

On the other hand, you might be interested in deciding/discussing the
tradeoffs of implementing an arbitrary algorithm serially or in
parallel, using multiple threads, and/or multiple processes, and/or
multiple networked computers, and/or different possible languages.

So, if you give us some ideas about your goals, I'm sure many people
have ideas to share.



-- 

DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem with Threads Kwnstantinos Euaggelidis <euaggelidiskwn@gmail.com> - 2012-12-19 09:11 -0800
  Re: Problem with Threads Dave Angel <d@davea.name> - 2012-12-19 13:23 -0500
  Re: Problem with Threads Hans Mulder <hansmu@xs4all.nl> - 2012-12-19 19:31 +0100

csiph-web