推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
288.16D
533.51D
V2EX  ›  Python

Python 里除了 multiprocessing,还有什么比较好用的多线程库吗?

  •  
  •   Livid ·
    PRO
    · Dec 24, 2018 · 2519 views
    This topic created in 2723 days ago, the information mentioned may be changed or developed.
    7 replies    2018-12-27 09:09:53 +08:00
    Phant0m
        1
    Phant0m  
       Dec 24, 2018 via iPhone
    mulitprocessing 不是多进程吗
    leavic
        2
    leavic  
       Dec 24, 2018
    threading?
    lance6716
        3
    lance6716  
       Dec 24, 2018
    同求
    Seahurt
        4
    Seahurt  
       Dec 25, 2018 via iPhone   ❤️ 2
    multiprocessing.dummy 提供了跟调用进程类似的调用线程的接口,底层还是基于 threading。py3.6 提供给了 concurrent 包,提供了更易于使用的多进程和多线程的功能,具体看官方文档
    fankcoder
        5
    fankcoder  
       Dec 25, 2018
    from concurrent.futures import ThreadPoolExecutor
    from concurrent.futures import ProcessPoolExecutor
    Vanquish5419
        6
    Vanquish5419  
       Dec 25, 2018
    多线程 or 进程?多进程运算我一般用 dask
    yzc27
        7
    yzc27  
       Dec 27, 2018
    concurrent.futures
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5371 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 07:57 · PVG 15:57 · LAX 00:57 · JFK 03:57
    ♥ Do have faith in what you're doing.