(Most of them in Python 3)
Library Requirements File (For Python2)
- Chapter 4: Multithreaded Programming
- Example 4-10: Locks and More Randomness (mtsleepF.py)
- Example 4-11: Candy Vending Machines and Semaphores (candy.py)
- Example 4-12: Producer-Consumer Problem (prodcons.py)
- Example 4-13: Higher-Level Job Management (bookrank3CF.py)
- Exercise 4-1: Processes vs. Threads (processes_vs_threads.md)
- Exercise 4-2: Utility of multithreading in Python (python_threads.md)
- Exercise 4-3: Mulithreading on Multicore System (threads_multicore.md)
- Exercise 4-4-a: Simple Byte Count (bytes_count.py)
- Exercise 4-4-b: Multithreaded Byte Count (mt_bytes_count.py)
- Exercise 4-5: Threads, Files and Regex (mt_simple_header_analysis.py, simple_header_analysis.py)
- Exercise 4-6: Threads and Networking (mt_duplex_chat_serv.py, mt_duplexc_chat_clnt.py)
- Exercise 4-7: Threads and Web Programming (Optional, to be done)(mtcrawl.py)
- Exercise 4-8: Thread Pools (thread_pools.py)
- Exercise 4-9: Files (mt_lines_counter.py) Single threaded version runs faster than the multithreaded one.
- Exercise 4-10: Concurrent Processing (concurrent_processing.py)
- Exercise 4-11: Synchronization Primitives (sync_prim.md)
- Exercise 4-12: Porting to Python 3 (already built Example 4-11 in Python3) (candy.py)