Computer Architecture Interview Guide

Every question uses the same frame: what it tests, progressively stronger answers, green and red flags, follow-ups and a practical scenario. Strong candidates reason from a mechanism, not from a remembered fact.

Same O(n), Very Different Wall Clockintermediate

Why can iterating an array be several times faster than iterating a linked list, when both are O(n)?

Is 4 GHz Always Faster Than 3 GHz?beginner

Is a 4 GHz CPU always faster than a 3 GHz CPU?

What Is a Cache Line?intermediate

What is a cache line, and why should an application engineer care about one?

Why Unpredictable Branches Hurtintermediate

Why can an unpredictable branch cost far more than the work inside it?

Which Hardware Does Virtual Memory?intermediate

Virtual memory is usually described as an operating-system feature. What hardware participates in it?

Independent Variables That Are Not Independentadvanced

Two threads increment two different variables and never touch each other's data, yet adding the second thread makes the program slower. What is happening?

What "Atomic" Actually Guaranteesadvanced

What does it mean for an operation to be atomic, and what does that not give you?

When Does SIMD Actually Help?intermediate

When does SIMD help, and what stops a loop from being vectorized?

Why GPUs Win Some Workloads and Lose Othersintermediate

Why are GPUs dramatically faster than CPUs for some workloads and slower for others?

ISA Versus Microarchitectureadvanced

What is the difference between an instruction set architecture and a microarchitecture, and why does the distinction matter?

Reading the Countersadvanced

A loop shows low IPC, a low L1 miss rate, a high last-level cache miss rate and memory bandwidth near the platform maximum. Is it compute-bound or memory-bound, and what would you do?

Why Field Order Changes Struct Sizeintermediate

Reordering the fields of a struct changes its size without removing any field. Why?

Works on x86, Breaks on ARMexpert

A lock-free structure works reliably on x86-64 and fails intermittently on AArch64. What class of bug is this, and how do you reason about it?

When Does NUMA Start to Matter?advanced

What is NUMA, and at what point does it start to affect application performance?

Does Hyper-Threading Double Your Cores?intermediate

A machine reports 32 logical CPUs but has 16 physical cores. Do you have 32 cores worth of compute?

When Do You Have to Care About Endianness?beginner

What is endianness, and in what situations does it actually affect your code?

Universal signals