November 01, 2005
C++/CLI Threading: Part II
Figure 3: Output of Listing 4.
Output using the ++ operator After 30000000 operations, value = 14323443 After 30000000 operations, value = 24521969 After 30000000 operations, value = 20000000 After 30000000 operations, value = 24245882 After 30000000 operations, value = 25404963 Output using Interlocked's Increment After 30000000 operations, value = 30000000
|
|
||||||||||||||||||||||||||||
|
|
|
|