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


Groups > comp.lang.python > #46257 > unrolled thread

Re: I want to know how to implement concurrent threads in Python

Started byFábio Santos <fabiosantosart@gmail.com>
First post2013-05-28 07:02 +0100
Last post2013-05-28 07:02 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: I want to know how to implement concurrent threads in Python Fábio Santos <fabiosantosart@gmail.com> - 2013-05-28 07:02 +0100

#46257 — Re: I want to know how to implement concurrent threads in Python

FromFábio Santos <fabiosantosart@gmail.com>
Date2013-05-28 07:02 +0100
SubjectRe: I want to know how to implement concurrent threads in Python
Message-ID<mailman.2281.1369720946.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On 28 May 2013 05:06, "Daniel Gagliardi" <danielgagliardiramos@gmail.com>
wrote:
>
> fuck! fuck! i'm gonna be fired if i didnt get this shit! i told my boss
id do it. fuck! im gonna pipe some crakc. fuck...

So do it. You've already been told how to.

It's true that python does not do real concurrent execution, but if most of
your threads spend most time sleeping, waiting on a socket or doing IO,
those are opportunities for other threads to cut in and execute
concurrently and the threading module is your best choice.

If you need to do cpu-intensive tasks concurrently, use the multiprocessing
module.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web