多线程文件处理与任务队列 | Python

本章覆盖:ThreadPoolExecutor;queue;文件遍历;线程安全结果汇总;异常传播;性能对比;适合 I/O 密集任务。

本章知识点

  • ThreadPoolExecutor
  • queue
  • 文件遍历
  • 线程安全结果汇总
  • 异常传播
  • 性能对比
  • 适合 I/O 密集任务