Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29008 > unrolled thread
| Started by | Jason Friedman <jason@powerpull.net> |
|---|---|
| First post | 2012-09-12 19:59 -0600 |
| Last post | 2012-09-13 09:30 +0200 |
| Articles | 2 — 2 participants |
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.
Re: submit jobs on multi-core Jason Friedman <jason@powerpull.net> - 2012-09-12 19:59 -0600
Re: submit jobs on multi-core Matej Cepl <mcepl@redhat.com> - 2012-09-13 09:30 +0200
| From | Jason Friedman <jason@powerpull.net> |
|---|---|
| Date | 2012-09-12 19:59 -0600 |
| Subject | Re: submit jobs on multi-core |
| Message-ID | <mailman.586.1347501552.27098.python-list@python.org> |
>>> I have a python script in which I have a list of files to input one by one >>> and for each file I get a number as an output. >>> I used for loop to submit the file to script. >>> My script uses one file at a time and returns the output. >>> >>> My computers has 8 cores. >>> Is there any way that I could submit 8 jobs at a time and get all the >>> output faster ? >> > Or if Python 3.2 is an option, the concurrent.futures module would be > very well suited for this task. Agreed.
[toc] | [next] | [standalone]
| From | Matej Cepl <mcepl@redhat.com> |
|---|---|
| Date | 2012-09-13 09:30 +0200 |
| Message-ID | <k2s1sk$1orl$1@ns.felk.cvut.cz> |
| In reply to | #29008 |
On 13/09/12 03:59, Jason Friedman wrote: >> Or if Python 3.2 is an option, the concurrent.futures module would be >> very well suited for this task. Also available as an external download for Python 2.* ... http://pypi.python.org/pypi/futures/ Matěj
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web