Operating System–Based Optimizations

This section focuses on optimizing the interaction between parts of your program that execute simultaneously and/or interact with shared resources. Multitasking and callback functions are used for these purposes. There are different ways and program states in which to use these, as well as some traps and difficulties to look out for when using them. This section gives explanations and field examples.

Multitasking

When used correctly, multitasking can greatly enhance program performance. However, it should not be used indiscriminately because it does bring with it some overhead and extra things to look out for during design and implementation. This section explains what multitasking is exactly, how to handle ...

Get C++ Footprint and Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.