摘要: python-concurrent 概述 __all__ = ( 'FIRST_COMPLETED', 'FIRST_EXCEPTION', 'ALL_COMPLETED', 'CancelledError', 'TimeoutError', 'BrokenExecutor', 'Future', 阅读全文
posted @ 2023-03-26 17:13 贝壳里的星海 阅读(109) 评论(0) 推荐(0) 编辑
摘要: python-threading import threading __all__ = ['get_ident', 'active_count', 'Condition', 'current_thread', 'enumerate', 'main_thread', 'TIMEOUT_MAX', 'E 阅读全文
posted @ 2023-03-26 17:12 贝壳里的星海 阅读(40) 评论(0) 推荐(0) 编辑
摘要: python-multiprocessing 在平常python程序中写入的程序大部分都是基于单进程,无法充分利用cpu多核的功能,python提供了multiprocessing模块来使用多核并发运行的操作,极大提高了程序的效率。multiprocessing 是一个支持使用与 threading 阅读全文
posted @ 2023-03-26 17:11 贝壳里的星海 阅读(182) 评论(0) 推荐(0) 编辑