> 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 可能是一个不错的选择。
