Labs / Python parallel computing

Get Started with Python Parallel Computing Knowledge Base in One Article

Author: Li Zisheng · Source: FreakStudio open documentation · License: CC BY 4.0

Contents

🎯 Welcome Message

This is a learning from basic concepts to practical applications Knowledge Base for Python parallel computing, covering core contents such as multithreading, multiprocessing and asynchronous programming to help you systematically master the principles of parallel computing and its implementation techniques in Python.

✨ Vision and Goals

📚 Core Content Module

Module NameIncluded chapters
Parallel Computing Basics- Basic concepts of parallel computing
Python Multithreading- Python Multithreading - Basic concepts, switching process, GIL mechanism and the producer-consumer model
- Python Multithreading - The threading module, creating and querying threads, and daemon threads - Python Multithreading
- Thread synchronization (Part 1) - Based on mutex locks, recursive locks and semaphores - Python Multithreading
- Thread synchronization (Part 2) - Based on condition variables, events and barriers - Python Multithreading - Running threads on a timer - Python Multithreading
- Communication based on queues - Python Multithreading
- Using thread pools and evaluating multithreading performance
Python Multiprocessing- Python Multiprocessing - The multiprocessing module, creating and naming processes, getting process IDs, creating daemon processes
- Python Multiprocessing - Data synchronization between processes - Based on mutex locks, recursive locks, semaphores, condition variables and events
- Python Multiprocessing - Data sharing between processes
- Based on shared memory and data managers
- Python Multiprocessing - Secure data transfer between processes
- Based on queues and pipes
- Python Multiprocessing - Process pool Pool
Python Asynchronous Programming- Python Asynchronous Programming - Basic concepts, event loop and callback mechanism
- Python Asynchronous Programming - Managing and scheduling coroutines
Tutorial Summary- Tutorial Summary