- 1. Python in Parallel
- 2. Parallel
- 2.1. Types of Problems
- 2.2. Types of solutions
- 2.3. Time slicing
- 2.4. Concurrencies
- 2.5. How many parallels to use?
- 2.6. Dividing jobs
- 2.7. Performance Monitoring
- 3. Threads
- 3.1. Python Threading docs
- 3.2. Threaded counters
- 3.3. Simple threaded counters
- 3.4. Simple threaded counters (parameterized)
- 3.5. Pass parameters to threads - Counter with attributes
- 3.6. Create a central counter
- 3.7. Lock - acquire - release
- 3.8. Counter - plain
- 3.9. GIL - Global Interpreter Lock
- 3.10. Thread load
- 3.11. Exercise: thread files
- 3.12. Exercise: thread URL requests.
- 3.13. Exercise: thread queue
- 3.14. Solution: thread queue
- 3.15. Solution: thread URL requests.
- 3.16. Concurrency
- 3.17. Create a counter queue
- 3.18. A Queue of tasks
- 4. Forking
- 4.1. Fork
- 4.2. Forking
- 4.3. Fork skeleton
- 4.4. Fork with load
- 4.5. Fork load results
- 4.6. Marshalling / Serialization
- 4.7. Fork with random
- 4.8. Exercise: fork return data
- 4.9. Solution: fork return data
- 5. Asynchronous programming with AsyncIO
- 5.1. Use cases for Async
- 5.2. Event loop
- 5.3. Print sync
- 5.4. Print async
- 5.5. Sync sleep
- 5.6. Async sleep
- 5.7. Sync sleep in loop
- 5.8. Async sleep in loop
- 5.9. Async sleep in loop with gather
- 5.10. coroutines
- 5.11. Async Tasks
- 5.12. Count Async
- 5.13. Passing the baton while sleeping 0 sec
- 5.14. Async sleep in a queue
- 5.15. Async http
- 5.16. Sync http requests
- 5.17. Async http requests
- 5.18. Async http requests with queue
- 5.19. Sync chores
- 5.20. Async chores
- 6. Async more
- 6.1. Explanation
- 6.2. Coroutines
- 6.3. More about asyncio
- 6.4. unsync
- 6.5. Async files
- 6.6. Async example
- 7. Asynchronus programming with Twisted
- 7.1. About Twisted
- 7.2. Echo
- 7.3. Echo with log
- 7.4. Simple web client
- 7.5. Web client
- 8. Multiprocess
- 8.1. Multiprocess CPU count
- 8.2. Multiprocess N files: Pool
- 8.3. Multiprocess load
- 8.4. Multiprocess: Pool
- 8.5. Multiprocess load async
- 8.6. Multiprocess and logging
- 8.7. Exercise: Process N files in parallel
- 8.8. Exercise: Process N Excel files in parallel
- 8.9. Exercise: Fetch URLs in parallel
- 8.10. Exercise: Fetch URLs from one site.
- 8.11. Solution: Process N files in parallel
- 8.12. Solution: Fetch URLs in parallel
- 9. Multitasking
- 9.1. What is Multitasking?
- 9.2. Multitasking example
- 9.3. Multitasking example with wait
- 9.4. Multitaksing - second loop waits for first one
- 9.5. Multitasking counter
- 9.6. Multitasking counter with thread locking