16. Optional Operating System Services¶
The modules described in this chapter provide interfaces to operating system features that are available on selected operating systems only. The interfaces are generally modeled after the Unix or C interfaces but they are available on some other systems as well (e.g. Windows). Here’s an overview:
- 16.1.
select— Waiting for I/O completion - 16.2.
threading— Thread-based parallelism - 16.3.
multiprocessing— Process-based parallelism- 16.3.1. Introduction
- 16.3.2. Reference
- 16.3.2.1.
Processand exceptions - 16.3.2.2. Pipes and Queues
- 16.3.2.3. Miscellaneous
- 16.3.2.4. Connection Objects
- 16.3.2.5. Synchronization primitives
- 16.3.2.6. Shared
ctypesObjects - 16.3.2.7. Managers
- 16.3.2.8. Proxy Objects
- 16.3.2.9. Process Pools
- 16.3.2.10. Listeners and Clients
- 16.3.2.11. Authentication keys
- 16.3.2.12. Logging
- 16.3.2.13. The
multiprocessing.dummymodule
- 16.3.2.1.
- 16.3.3. Programming guidelines
- 16.3.4. 範例
- 16.4.
concurrent.futures— Launching parallel tasks - 16.5.
mmap— Memory-mapped file support - 16.6.
readline— GNU readline interface - 16.7.
rlcompleter— Completion function for GNU readline - 16.8.
dummy_threading— Drop-in replacement for thethreadingmodule - 16.9.
_thread— Low-level threading API - 16.10.
_dummy_thread— Drop-in replacement for the_threadmodule
