Checking Program Correctness

After you have modified your program to fix or reduce data sharing problems, run your test system over this new version of the program to verify its correctness. Because you have not yet introduced any parallelism, the program should still be relatively easy to debug.

To simplify debugging, make and test the changes incrementally. If you accumulate too many changes before you test and debug, it will take longer to identify the cause of any problems found while testing.