|
| 1 | +# Python Threading Jump-Start |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +* <https://github.com/SuperFastPython/PythonThreadingJumpStart> |
| 6 | + |
| 7 | +This repository provides all source code for the book: |
| 8 | + |
| 9 | +* **Python Threading Jump-Start**: _Develop Concurrent IO-bound Programs And Work With The GIL_, Jason Brownlee, 2022. |
| 10 | + |
| 11 | + |
| 12 | +## Source Code |
| 13 | +You can access all Python .py files directly here: |
| 14 | + |
| 15 | +* [src/](src/) |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +### Book Blurb |
| 20 | + |
| 21 | +> Unlock concurrency with Python threads (and run 100s or 1,000s of tasks simultaneously). |
| 22 | +> |
| 23 | +> The threading module provides easy-to-use thread-based concurrency in Python. |
| 24 | +> |
| 25 | +> Unlike Python multiprocessing, the threading module is limited by the infamous Global Interpreter Lock (GIL). |
| 26 | +> |
| 27 | +> Critically, the GIL is released when performing blocking I/O. Additionally, threads can share memory make them perfectly suited to I/O-bound tasks such as reading and writing from files and socket connections. |
| 28 | +> |
| 29 | +> This is the API you need to use to make your code run faster. |
| 30 | +> |
| 31 | +> Introducing: "Python Threading Jump-Start". A new book designed to teach you the threading module in Python, super fast! |
| 32 | +> |
| 33 | +> You will get a rapid-paced, 7-part course to get you started and make you awesome at using the threading API. |
| 34 | +> |
| 35 | +> Each of the 7 lessons was carefully designed to teach one critical aspect of the threading module, with explanations, code snippets and worked examples. |
| 36 | +> |
| 37 | +> You will discover: |
| 38 | +> |
| 39 | +> * How to choose tasks that are well suited to threads. |
| 40 | +> * How to create and run new threads. |
| 41 | +> * How to locate and query running threads. |
| 42 | +> * How to use locks, semaphores, barriers and more. |
| 43 | +> * How to share data between threads using queues. |
| 44 | +> * How to execute ad hoc tasks with reusable worker threads. |
| 45 | +> * How to gracefully stop and forcefully kill threads. |
| 46 | +> |
| 47 | +> Each lesson ends with an exercise for you to complete to confirm you understand the topic, a summary of what was learned, and links for further reading if you want to go deeper. |
| 48 | +> |
| 49 | +> Stop copy-pasting code from StackOverflow answers. |
| 50 | +> |
| 51 | +> Learn Python concurrency correctly, step-by-step. |
| 52 | +
|
0 commit comments