|
| 1 | +# Python ThreadPoolExecutor Jump-Start |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +* <https://github.com/SuperFastPython/PythonThreadPoolExecutorJumpStart> |
| 6 | + |
| 7 | +This repository provides all source code for the book: |
| 8 | + |
| 9 | +* **Python ThreadPoolExecutor Jump-Start**: _Execute IO-Bound Tasks Asynchronously With Modern Thread Pools_, Jason Brownlee, 2022. |
| 10 | + |
| 11 | + |
| 12 | +## Source Code |
| 13 | +You can access all Python .py files directly here: |
| 14 | + |
| 15 | +* [src/](src/) |
| 16 | + |
| 17 | +## Get the Book |
| 18 | + |
| 19 | +You can learn more about the book here: |
| 20 | + |
| 21 | +* Soon... |
| 22 | + |
| 23 | +### Book Blurb |
| 24 | + |
| 25 | +> How much faster could your Python code run (if you used 100s of thread workers)? |
| 26 | +> |
| 27 | +> The ThreadPoolExecutor class provides modern thread pools for IO-bound tasks. |
| 28 | +> |
| 29 | +> This is not some random third-party library, this is a class provided in the Python standard library (already installed on your system). |
| 30 | +> |
| 31 | +> This is the class you need to make your code run faster. |
| 32 | +> |
| 33 | +> There's just one problem. No one knows about it (or how to use it well). |
| 34 | +> |
| 35 | +> Introducing: "Python ThreadPoolExecutor Jump-Start". A new book designed to teach you thread pools in Python, super fast! |
| 36 | +> |
| 37 | +> You will get a rapid-paced, 7-part course to get you started and make you awesome at using the ThreadPoolExecutor. |
| 38 | +> |
| 39 | +> Including: |
| 40 | +> |
| 41 | +> * How to create thread pools and when to use them. |
| 42 | +> * How to configure thread pools including the number of threads. |
| 43 | +> * How to execute tasks with worker threads and handle for results. |
| 44 | +> * How to execute tasks in the thread pool asynchronously. |
| 45 | +> * How to query and get results from handles on asynchronous tasks called futures. |
| 46 | +> * How to wait on and manage diverse collections of asynchronous tasks. |
| 47 | +> * How to develop a concurrent website status checker that is 5x faster than the sequential version. |
| 48 | +> |
| 49 | +> Each of the 7 lessons was carefully designed to teach one critical aspect of the ThreadPoolExecutor, with explanations, code snippets and worked examples. |
| 50 | +> |
| 51 | +> Each lesson ends with an exercise for you to complete to confirm you understood the topic, a summary of what was learned, and links for further reading if you want to go deeper. |
| 52 | +> |
| 53 | +> Stop copy-pasting code from StackOverflow answers. |
| 54 | +> |
| 55 | +> Learn Python concurrency correctly, step-by-step. |
0 commit comments