[Code] 狗哥之多核并发
听说 Golang 擅长并发,在这里谈一谈。
第一阶段
C++11 – Multithreading
并行与异步处理
[Python] 09 - Multi-processing
线程并发
一、线程
线程创建
线程同步(锁)
二、进程锁
GIL:Global Interpreter Lock --> 进程 cpython
三、队列
三种队列可构成缓冲区、线程共享区
[Python] 10 - Concurrent: asyncio
异步处理
一、asyncio 客户端
网络爬虫 crawler。
二、aiohttp 服务器端
服务器端响应 requests。
Golang