# What is the difference between a dedicated vCPU and a shared vCPU?

In cloud computing, Virtual Central Processing Units (vCPUs) are a key resource Zenlayer offers customers. There are two types of vCPUs: dedicated and shared.

Dedicated vCPUs are assigned to a specific virtual machine and are not shared with any other virtual machines. This means that the vCPUs are dedicated solely to the use of that particular virtual machine. Dedicated vCPUs offer higher performance and predictability, as they are not subject to contention or interference from other virtual machines.

Shared vCPUs, on the other hand, are shared among multiple virtual machines. This means that the resources of the physical CPU are divided among several virtual machines, which can lead to contention and interference. Shared vCPUs are typically less expensive than dedicated vCPUs and are a good choice for workloads that are not CPU-intensive.

The choice between dedicated and shared vCPUs depends on the specific requirements of the workload. If the workload requires high performance and predictability, dedicated vCPUs are the better choice. If cost is a primary consideration and the workload is not CPU-intensive, shared vCPUs may be a good option.


---

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