PacktPub - Concurrent and Parallel Programming in Python
- Type:
- Other > Other
- Files:
- 28
- Size:
- 1.67 GiB (1791592013 Bytes)
- Uploaded:
- 2023-05-13 20:56 GMT
- By:
- abdenna
- Seeders:
- 45
- Leechers:
- 27
- Info Hash: EF1CC742BE44429C99D407B10B0CD6EF8F0A5A86
PacktPub – Concurrent and Parallel Programming in Python English | Tutorial | Size: 1.67 GB https://i.im.ge/2023/05/12/UEFIi1.0.png https://i.im.ge/2023/05/12/UEFLbf.1.png https://i.im.ge/2023/05/12/UEFUGm.2.png In a big data project, a plethora of information is retrieved, big numbers are crunched on our machine, or both. If the coding is sequential or synchronous, our application will struggle to execute. Two mechanisms to alleviate such bottlenecks are concurrency and parallelism. In Python, concurrency is represented by threading, whereas multiprocessing achieves parallelism. This course begins with an introduction about potential programming speed bottlenecks and solving them. You will delve into Python concepts and create a Wikipedia Reader, Yahoo Finance Reader, Queues, and Master Scheduler. You will build a multi-threaded program to grab data from the Internet and parse and save them into a local database. Implement multiprocessing in Python, which lets us use multiple CPUs in our code. Learn about threading, multiprocessing, asynchronous wait, locking, multiprocessing queues, Pool Map Multiple Arguments, writing asynchronous programs, and combining async and multiprocessing. Upon completion, we can spread our workload over all cores available on the used machine. We will combine both elements, multiprocessing with asynchronous programming, to maximize benefit and CPU resource usage and minimize the time spent waiting for IO responses