Static code analysis
Another viable method to identify potential errors and bugs in your concurrent programs is to perform static code analysis. This method looks for patterns in the code itself, as opposed to executing some (or all) parts of the code. In other words, static code analysis inspects a program by visually looking at its structure, the use of variables and instructions, and how different parts of the program interact with each other.
The main advantage of using static code analysis is that we are not relying on just the execution of our programs and the results produced during that process (in other words, dynamic testing) to determine whether the programs are correctly designed. This method can detect errors and bugs that do ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access