> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cn/virtual-machine/virtual-machine-faq/what-is-the-difference-between-a-dedicated-vcpu-and-a-shared-vcpu.md).

# 专用 vCPU 和共享 vCPU 有什么区别？

在云计算中，虚拟中央处理器 (vCPU) 是 Zenlayer 提供给客户的关键资源。vCPU 有两种类型：专用和共享。

专用 vCPU 被分配给特定的虚拟机，不与其他虚拟机共享。这意味着这些 vCPU 仅用于该特定虚拟机。专用 vCPU 提供更高的性能和可预测性，因为它们不会受到其他虚拟机的竞争或干扰。

共享 vCPU 则在多个虚拟机之间共享。这意味着物理 CPU 的资源会被分配给多个虚拟机，这可能会导致竞争和干扰。共享 vCPU 通常比专用 vCPU 更便宜，适用于不需要高 CPU 资源的工作负载。

在专用 vCPU 和共享 vCPU 之间进行选择取决于工作负载的具体需求。如果工作负载需要高性能和高可预测性，专用 vCPU 是更好的选择。如果成本是主要考虑因素，且工作负载不需要高 CPU 资源，共享 vCPU 可能是一个不错的选择。


---

# 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://docs.console.zenlayer.com/welcome/cn/virtual-machine/virtual-machine-faq/what-is-the-difference-between-a-dedicated-vcpu-and-a-shared-vcpu.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.
