Two thread updating a variable without a lock

Two thread updating a variable (initial value of 0) without a lock, each thread uses a loop of 50 to increment a global variable. What is the minimum and maximum possible value you can get?

Comments (4)