Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26303
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Is Python a commercial proposition ? |
| Date | 2012-07-31 08:04 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-D73DAF.08045731072012@news.panix.com> (permalink) |
| References | (2 earlier) <mailman.2713.1343628439.4697.python-list@python.org> <jv64j2$g2n$1@reader1.panix.com> <50173d9c$0$29978$c3e8da3$5496439d@news.astraweb.com> <7x62941qtc.fsf@ruckus.brouhaha.com> <50177b4d$0$29867$c3e8da3$5496439d@news.astraweb.com> |
In article <50177b4d$0$29867$c3e8da3$5496439d@news.astraweb.com>, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > Do they consider that perhaps there are alternatives to threads? There's basically two reasons people use threads. First is because it's a convenient way to multiplex short-lived tasks on a single processor. What people tend to forget is that we managed to do that before there were threads. Event loops still work perfectly fine. For an interesting example, http://www.gevent.org/. Second is because we have multiple long-lived, compute-bound tasks and want to be able to take advantage of multiple processors. For that, multiprocessing works just fine most of the time. And multiprocess has the advantage over multithreading in that the processes can run on different machines, so you're not limited by the number of cores you can get on a single CPU. What multiprocessing doesn't give you is fine-grain task switching. So we're left with the set of jobs which consist of many (but not more than the number of cores on one CPU) compute-bound tasks, that we know how to parallelize, and require fine-grain task switching. Sure, that's an important set of jobs, but there's a whole huge world of computing that doesn't fit into that box.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-07-29 17:01 +0100
Re: Is Python a commercial proposition ? Michael Hrivnak <mhrivnak@hrivnak.org> - 2012-07-29 13:13 -0400
Re: Is Python a commercial proposition ? Bernd Waterkamp <Bernd-Waterkamp@web.de> - 2012-07-29 21:43 +0200
Re: Is Python a commercial proposition ? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-07-29 23:47 +0200
Re: Is Python a commercial proposition ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-29 18:43 +0100
counting source lines (was: Is Python a commercial proposition ?) Stefan Behnel <stefan_ml@behnel.de> - 2012-07-29 19:49 +0200
Re: Is Python a commercial proposition ? Brandon Schaffer <bschaffer13@gmail.com> - 2012-07-29 11:50 -0600
Re: Is Python a commercial proposition ? Tim Chase <python.list@tim.thechases.com> - 2012-07-29 13:28 -0500
Re: Is Python a commercial proposition ? Andrew Cooper <amc96@cam.ac.uk> - 2012-07-29 19:34 +0100
Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-07-29 20:38 +0200
Re: Is Python a commercial proposition ? Terry Reedy <tjreedy@udel.edu> - 2012-07-29 15:38 -0400
Re: Is Python a commercial proposition ? Aled Evans <aled.r.evans@gmail.com> - 2012-07-29 12:54 -0700
Re: Is Python a commercial proposition ? Rodrick Brown <rodrick.brown@gmail.com> - 2012-07-29 20:12 -0400
Re: Is Python a commercial proposition ? Andrew Berg <bahamutzero8825@gmail.com> - 2012-07-29 19:52 -0500
Re: Is Python a commercial proposition ? Rodrick Brown <rodrick.brown@gmail.com> - 2012-07-29 22:31 -0400
Re: Is Python a commercial proposition ? Paul Rubin <no.email@nospam.invalid> - 2012-07-29 20:03 -0700
Re: Is Python a commercial proposition ? alex23 <wuwei23@gmail.com> - 2012-07-30 17:45 -0700
Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-07-30 08:07 +0200
Re: Is Python a commercial proposition ? Grant Edwards <invalid@invalid.invalid> - 2012-07-30 14:09 +0000
Re: Is Python a commercial proposition ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-31 02:06 +0000
Re: Is Python a commercial proposition ? Paul Rubin <no.email@nospam.invalid> - 2012-07-30 21:45 -0700
Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-07-31 07:27 +0200
Re: Is Python a commercial proposition ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-31 06:29 +0000
Re: Is Python a commercial proposition ? Roy Smith <roy@panix.com> - 2012-07-31 08:04 -0400
Re: Is Python a commercial proposition ? Chris Angelico <rosuav@gmail.com> - 2012-07-30 17:52 +1000
Re: Is Python a commercial proposition ? Roy Smith <roy@panix.com> - 2012-07-30 09:06 -0400
Re: Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-07-30 14:37 +0100
Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-07-31 23:52 +1000
Re: Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-07-31 18:27 +0100
Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-08-01 09:31 +1000
Re: Is Python a commercial proposition ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-01 09:06 +0100
Re: Is Python a commercial proposition ? lipska the kat <lipska@yahoo.co.uk> - 2012-08-01 09:15 +0100
Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-08-01 21:59 +1000
Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-08-01 14:32 +0200
Re: Is Python a commercial proposition ? David <bouncingcats@gmail.com> - 2012-08-02 13:10 +1000
Re: Is Python a commercial proposition ? lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-02 09:17 +0100
Re: Is Python a commercial proposition ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-02 09:09 +0100
RE: Is Python a commercial proposition ? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-08-03 06:51 +0000
Re: Is Python a commercial proposition ? Stefan Behnel <stefan_ml@behnel.de> - 2012-08-03 11:34 +0200
Re: Is Python a commercial proposition ? Tim Chase <python.list@tim.thechases.com> - 2012-07-30 06:09 -0500
Re: Is Python a commercial proposition ? rusi <rustompmody@gmail.com> - 2012-07-30 09:25 -0700
Re: Is Python a commercial proposition ? Emile van Sebille <emile@fenx.com> - 2012-07-30 10:36 -0700
RE: Is Python a commercial proposition ? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-07-30 18:26 +0000
Re: Is Python a commercial proposition ? Chris Withers <chris@python.org> - 2012-08-23 22:46 +0100
Re: Is Python a commercial proposition ? lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-24 12:03 +0100
csiph-web