forked from p46318075/CodePattern
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zj3D
b15c7505f6
|
9 months ago | |
---|---|---|
.. | ||
000 普通做法.py | 9 months ago | |
010 多进程.py | 9 months ago | |
020 多线程.py | 9 months ago | |
030 协程.py | 9 months ago | |
040 异步.py | 9 months ago | |
readme.md | 9 months ago | |
util.py | 9 months ago |
readme.md
目标
本节使用一个爬虫任务来展示如何追求代码的性能 。 充分理解线程、协程、进程、同步、异步、阻塞、非阻塞等概念,并能够根据具体场景选择合适的并发模型。 主线问题:如何解决IO和计算速度不匹配、如何任务分解、分发和协作 。