Keywords: perfbook_html

## 6.2.1 Design

Statistical counting is typically handled by providing a counter per thread (or CPU, when running in the kernel), so that each thread updates its own counter. The aggregate value of the counters is read out by simply summing up all of the threads' counters, relying on the commutative and associative properties of addition. This is an example of the Data Ownership pattern that will be introduced in Section .

Quick Quiz 6.11: But doesn't the fact that C's ``integers'' are limited in size complicate things? End Quick Quiz