liveBook · Manning

Clock cycle

A clock cycle is one period of a processor’s repeating clock signal, used as a unit of processor timing and execution.

How 2 Manning books explain it

Modern C

A clock cycle is one period of a processor's clock signal used as a unit of execution time.

How it is used
Uses cycle estimates to compare the execution costs of loop iterations and statistical updates.
How deep it goes
Works through timing estimates and checks their plausibility against assembler, without explaining processor clock internals.
Examples
Compares a simple sum with three incremental statistics collectors on a 2.1 GHz laptop.
What you can do after
Evaluate measured code costs in cycles and compare their plausibility with generated instructions.

Read how Modern C explains clock cycle →

GPU Programming with Triton

A clock cycle is the interval between consecutive pulses of a processor's internal clock.

How it is used
Measures GPU memory latency and instruction costs in a unit that stays meaningful across clock speeds.
How deep it goes
Defines the interval between clock pulses and relates frequency to duration and hardware costs.
Examples
Uses a 1.5 GHz frequency example and Hopper memory-access latency figures.
What you can do after
Evaluate memory and instruction costs in counts that remain meaningful across clock speeds.

Read how GPU Programming with Triton explains clock cycle →

Related concepts

Questions about clock cycle

What is clock cycle?

A clock cycle is one period of a processor’s repeating clock signal, used as a unit of processor timing and execution.

Which Manning books explain clock cycle?

Modern C and GPU Programming with Triton.

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.