---
title: "vCPU"
url: https://www.daytona.com/definitions/v/vcpu
---

# vCPU

A vCPU is a processor as a virtual machine sees it, backed by a thread on the host.

A vCPU is a virtual processor that a guest schedules its work on as if it were a real CPU core. On the host, each vCPU is a thread that runs guest code whenever the host scheduler gives it a physical processor. A vCPU usually maps to one logical thread of a physical core, not to a whole core. The guest kernel cannot tell the difference and runs its own scheduler on top.

The host treats vCPU threads like its other threads, so a vCPU competes for processor time with everything else on the host. When its thread has to wait, the virtual machine does not see the wait directly. To the guest, the time simply passes, as if its processor had stalled. Timing inside a guest is therefore less predictable than on bare metal.

The vCPU count is the unit in which cloud providers sell processor capacity, but it does not fix what a workload gets. How the vCPUs map to physical cores, and how many other vCPUs share those cores, decides the real performance. Two offers with the same count can perform very differently, depending on the processor model and how full the host is. For code inside a sandbox that runs as a virtual machine, a busy neighbor can look like a slow processor.

## Related terms

- [Chip](https://www.daytona.com/definitions/c/chip.md)
- [Chiplet](https://www.daytona.com/definitions/c/chiplet.md)
- [Clock speed](https://www.daytona.com/definitions/c/clock-speed.md)
- [CPU](https://www.daytona.com/definitions/c/cpu.md)
- [CPU core](https://www.daytona.com/definitions/c/cpu-core.md)
- [CPU type](https://www.daytona.com/definitions/c/cpu-type.md)
