6.4 Exact Limit Counters
Keywords: perfbook_html

#
6.4 Exact Limit Counters

To solve the exact structure-allocation limit problem noted in the Quick Quiz on page , we need a limit counter that can tell exactly when its limits are exceeded. One way of implementing such a limit counter is to cause threads that have reserved counts to give them up. One way to do this is to use atomic instructions. Of course, atomic instructions will slow down the fastpath, but on the other hand, it would be silly not to at least give them a try.

Subsections

- 6.4.1 Atomic Limit Counter Implementation
- 6.4.2 Atomic Limit Counter Discussion
- 6.4.3 Signal-Theft Limit Counter Design
- 6.4.4 Signal-Theft Limit Counter Implementation
- 6.4.5 Signal-Theft Limit Counter Discussion