Figure
shows the per-thread-variable API.
This API provides the per-thread equivalent of global variables.
Although this API is, strictly speaking, not necessary, it can
greatly simply coding.
Quick Quiz B.3: How could you work around the lack of a per-thread-variable API on systems that do not provide it? End Quick Quiz