> For the complete documentation index, see [llms.txt](https://www.bfm-unity.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.bfm-unity.org/3.0.0-1/bfm-dins.-bi-fang-meng-gong-cheng-she-ji-yuan/yi-bu-bing-fa-xie-cheng-1/yi-bu-bing-fa-xie-cheng.md).

# 旧版本高并发实验室

## **难点：**

### **协程&服务器心跳**

* 协程 grep

<https://docs.python.org/zh-cn/3/library/asyncio-task.html>

* 【Python】基于协程的并发WebSocket通信实践

<https://blog.csdn.net/pupilxmk/article/details/106429215>

### **并发&锁**

* 分布式锁，三种实现方式，性能对比分析！

<https://cloud.tencent.com/developer/article/1720823>

### **异步asyncio**

* 异步asyncio

<https://docs.python.org/zh-cn/3/library/asyncio.html>

* aiohttp

<https://pypi.org/project/aiohttp/>

* AIOAMQP

<https://pypi.org/project/aioamqp/>

## **【Python系列】4**、**协程与异步并发 🚩**

[**https://www.dazhuanlan.com/2020/01/04/5e101c249fa42/**](https://www.dazhuanlan.com/2020/01/04/5e101c249fa42/)

## Python中协程(coroutine)和生成器(generator)的区别

<https://www.jianshu.com/p/5103c6a63e33>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.bfm-unity.org/3.0.0-1/bfm-dins.-bi-fang-meng-gong-cheng-she-ji-yuan/yi-bu-bing-fa-xie-cheng-1/yi-bu-bing-fa-xie-cheng.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
