Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46257
| References | <CAGpAtSFH5Gn1xWuPKhGm-Bo0OZi0PgOD+9O-KC=MpCXJ20bC6w@mail.gmail.com> <knu24m$egq$5@ger.gmane.org> <CAGpAtSGJNVniWdoJsFPaFNSndCTB55CteAbjYxEpMWvXZf-uFg@mail.gmail.com> |
|---|---|
| Date | 2013-05-28 07:02 +0100 |
| Subject | Re: I want to know how to implement concurrent threads in Python |
| From | Fábio Santos <fabiosantosart@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2281.1369720946.3114.python-list@python.org> (permalink) |
[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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I want to know how to implement concurrent threads in Python Fábio Santos <fabiosantosart@gmail.com> - 2013-05-28 07:02 +0100
csiph-web