CPU
A central processing unit (CPU) is a computer processor that executes program instructions and performs general-purpose computational operations.
Fast Python: High performance techniques for large datasets
- How it is used
- Uses the CPU as a performance resource to profile and as a baseline for contrasting GPU execution.
- How deep it goes
- Explains CPU execution with a simplified sequential model and illustrative memory costs, rather than a detailed processor implementation.
- Examples
- Illustrates CPU work with pairwise NOAA station distances and sequential doubling of a 100-element array.
- What you can do after
- Diagnose CPU bottlenecks with Python’s profiling infrastructure on a pairwise distance workload.
Read how Fast Python: High performance techniques for large datasets explains CPU →
Starting Data Analytics with Generative AI and Python
A CPU is a general-purpose processor designed to execute a broad range of sequential and parallel computational workloads.
- How it is used
- Uses CPU cores to explore performance scaling for computational workloads.
- How deep it goes
- Explains multicore execution through a threaded bootstrap example, but defers broader processor architecture details.
- Examples
- Demonstrates optimized and parallelized bootstrap confidence-interval functions and compares their execution times.
- What you can do after
- Diagnose whether adding CPU threads improves a workload by inspecting utilization and benchmarking execution time.
Read how Starting Data Analytics with Generative AI and Python explains CPU →
Grokking GPU Programming
A CPU is a general-purpose processor that executes program instructions.
- How it is used
- Runs the main program as a low-latency host and handles complex logic or work with dependencies.
- How deep it goes
- Contrasts CPU core design and latency goals with GPU throughput, but does not detail CPU architecture.
- Examples
- Uses exam grading to illustrate dependencies and contrasts CPU tasks with GPU matrix math and image processing.
- What you can do after
- Evaluate whether work suits CPU execution or can be divided into independent tasks for a GPU.
The Coder Cafe
A CPU is the central processing unit that executes program instructions and coordinates computational operations.
- How it is used
- Frames CPU behavior as a practical foundation for understanding why some code runs faster than other code.
- How deep it goes
- Explains four-stage instruction processing, pipelining, clock limits, and microarchitecture while treating the pipeline model as simplified.
- Examples
- Uses a four-stage instruction path, clock-frequency comparison, and assembly for a conditional branch.
- What you can do after
- Apply pipeline, branching, and clock-frequency concepts when reasoning about code performance and CPU behavior.
GPU Programming with Triton
A central processing unit is a general-purpose processor optimized for low-latency sequential and moderately parallel execution.
- How it is used
- Orchestrates GPU work from the host by launching Triton kernels that execute on the device.
- How deep it goes
- Explains latency-oriented design through core count, caches, and control logic.
- Examples
- Compares CPU and GPU chip-area allocation with a design diagram.
- What you can do after
- Understand how CPU latency optimization contrasts with GPU throughput and how the CPU launches GPU kernels.
Rust in Action: Systems programming concepts and techniques
A CPU is the computer hardware component that executes instructions and performs arithmetic and logical operations.
- How it is used
- Uses CPU behavior to build a minimal CHIP-8 emulator and reason about thread performance.
- How deep it goes
- Explains registers, opcodes, decoding, dispatch, and addition internals, but stops before memory-backed execution.
- Examples
- Demonstrates a CHIP-8 addition opcode and measures sleep and spin-loop timing across increasing thread counts.
- What you can do after
- Build it from scratch as a small emulator that loads registers, decodes an opcode, and executes addition.
Read how Rust in Action: Systems programming concepts and techniques explains CPU →
Grokking Concurrency
A processor, or central processing unit (CPU), is hardware that executes machine instructions and performs general-purpose computation.
- How it is used
- Explains how hardware executes programs and supports informed choices about sequential and concurrent software performance.
- How deep it goes
- Defines instruction execution, introduces CPU components, and surveys parallelism without detailing memory behavior or low-level circuitry.
- Examples
- Uses a recipe analogy, CPU component diagrams, serial execution, instruction-level parallelism, multiprocessors, and multicore processors.
- What you can do after
- Evaluate hardware capabilities and choose processing resources that better support concurrent algorithm performance.
CUDA for LLMs
A CPU is a processor designed with relatively few powerful cores for sequential tasks and complex control logic.
- How it is used
- Runs the main program on the host and manages application flow while the GPU handles parallel work.
- How deep it goes
- Explains core and cache tradeoffs and latency-oriented execution, while deferring deeper GPU streaming-multiprocessor architecture.
- Examples
- Uses web-page loading and mouse-click response as latency examples and compares Ryzen 9 9950X3D with RTX 3090.
- What you can do after
- Understand how CPU latency strengths contrast with GPU throughput for deep-learning computation.
Quantization and Fast Inference
A CPU is a general-purpose processor that executes program instructions and arithmetic operations.
- How it is used
- Supports CPU-first LLM inference when cost, fleet bin-packing, or absent GPUs drive deployment.
- How deep it goes
- Explains how ISA flags include or exclude kernels and when AMX dispatches to AVX-512.
- Examples
- Compares AVX2, AVX-512/VNNI, and AMX-INT8 builds against Sapphire Rapids CPU features.
- What you can do after
- Configure llama.cpp builds with selected ISA kernels and verify which features were compiled in.
Also covered in
- Graph Neural Networks in Action
- Build and Orchestrator in Go (From Scratch)
- Deep Learning with R, Third Edition
- Learn Go with Pocket-Sized Projects
- GitHub Actions in Action: Continuous integration and delivery for DevOps
- Grokking Software ArchitectureIn early access (MEAP)
What to know first
- deep learningDeep learning is a machine-learning approach that uses neural networks with multiple computational layers to learn representations from data.
- workflowA workflow is an organized sequence of coordinated activities or tasks through which work progresses toward a defined outcome.
- CUDACUDA is NVIDIA’s parallel computing platform and programming model for performing general-purpose computations on NVIDIA GPUs.
- programming languageA programming language is a formal language with defined syntax and semantics for expressing computations and instructions that a computer can execute, interpret, or translate.
Related concepts
- GPUcontrasts with · A graphics processing unit (GPU) is a processor designed for highly parallel computation, especially graphics and other data-parallel workloads.
- garbage collectionused by · Garbage collection is an automated process that identifies and reclaims or removes memory, data, or other items no longer reachable or needed by a system.
- hostpart of · A host is a physical or virtual computing system that runs software, provides computing resources, or participates as an addressed endpoint on a network.
Questions about CPU
What is CPU?
A central processing unit (CPU) is a computer processor that executes program instructions and performs general-purpose computational operations.
Which Manning books explain CPU?
Fast Python: High performance techniques for large datasets, Starting Data Analytics with Generative AI and Python, Grokking GPU Programming, The Coder Cafe, GPU Programming with Triton, Rust in Action: Systems programming concepts and techniques, Grokking Concurrency, CUDA for LLMs and 1 more.
What should I know before learning CPU?
Manning books that teach CPU usually introduce deep learning, workflow, CUDA and programming language first.
What is the difference between CPU and GPU?
A central processing unit (CPU) is a computer processor that executes program instructions and performs general-purpose computational operations. A graphics processing unit (GPU) is a processor designed for highly parallel computation, especially graphics and other data-parallel workloads.
What kinds of CPU are there?
Kinds of CPU include Ricoh 2A03 CPU.
What is CPU part of?
CPU is part of host. A host is a physical or virtual computing system that runs software, provides computing resources, or participates as an addressed endpoint on a network.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.








