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 or NT). Here’s an overview:
- 16.1.
select
— Waiting for I/O 完成 - 16.2.
threading
— Higher-level threading interface - 16.3.
thread
— Multiple threads of control - 16.4.
dummy_threading
— 可直接替代threading
模块。 - 16.5.
dummy_thread
— Drop-in replacement for thethread
module - 16.6.
multiprocessing
— Process-based “threading” interface - 16.7.
mmap
— 内存映射文件支持 - 16.8.
readline
— GNU readline 接口 - 16.9.
rlcompleter
— GNU readline 的补全函数