liveBook · Manning

CPU

Also called CPUs, processor, central processing unit

A central processing unit (CPU) is a computer processor that executes program instructions and performs general-purpose computational operations.

How 9 Manning books explain it

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.

Read how Grokking GPU Programming explains CPU →

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.

Read how The Coder Cafe explains CPU →

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.

Read how GPU Programming with Triton explains CPU →

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.

Read how Grokking Concurrency explains CPU →

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.

Read how CUDA for LLMs explains CPU →

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.

Read how Quantization and Fast Inference explains CPU →

Also covered in

What to know first

Related concepts

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.