# 4. 线程

- [4.1 线程的简单介绍与同步方法](https://linuxprogramming.weijun-lin.top/4.-xian-cheng/4.1-xian-cheng-de-jian-dan-jie-shao-yu-tong-bu-fang-fa.md): 线程的简单介绍与线程同步方法
- [4.2 线程安全、线程取消](https://linuxprogramming.weijun-lin.top/4.-xian-cheng/4.2-xian-cheng-an-quan-xian-cheng-qu-xiao.md): 线程安全、线程取消以及一些额外细节


---

# Agent Instructions: 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:

```
GET https://linuxprogramming.weijun-lin.top/4.-xian-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
