> For the complete documentation index, see [llms.txt](https://tuonioooo-notebook.gitbook.io/java-concurrent/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tuonioooo-notebook.gitbook.io/java-concurrent/javaduo-xian-cheng-de-chang-jian-wen-ti/chang-jian-wen-ti-yi.md).

# 常见问题一

**1.用多线程的目的是什么？**

充分利用CPU资源，并发做多件事

**2.单核CPU机器适不适合用多线程？**

适合，如果是单线程，线程中需要等待IO时，此时CPU处于空闲状态

**3.线程什么时候会让出CPU？**

阻塞时，wait、sleep、await、等待IO、线程结束、yield
